Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c3eddb05
Commit
c3eddb05
authored
Dec 11, 2003
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1139: tal:attributes didn't escape double quotes.
parent
04a8ca1e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
1 deletion
+7
-1
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/TAL/TALInterpreter.py
lib/python/TAL/TALInterpreter.py
+1
-1
lib/python/TAL/tests/input/test16.html
lib/python/TAL/tests/input/test16.html
+2
-0
lib/python/TAL/tests/output/test16.html
lib/python/TAL/tests/output/test16.html
+2
-0
No files found.
doc/CHANGES.txt
View file @
c3eddb05
...
...
@@ -82,6 +82,8 @@ Zope Changes
Bugs fixed
- Collector #1139: tal:attributes didn't escape double quotes.
- Management interface of TopicIndexes has been completely broken
- Collector #1129: Improper parsing of ISO8601 in DateTime.
...
...
lib/python/TAL/TALInterpreter.py
View file @
c3eddb05
...
...
@@ -374,7 +374,7 @@ class TALInterpreter:
elif
evalue
is
self
.
Default
:
value
=
attrEscape
(
value
)
else
:
value
=
escape
(
value
)
value
=
escape
(
value
,
quote
=
1
)
value
=
'%s="%s"'
%
(
name
,
value
)
return
ok
,
name
,
value
bytecode_handlers
[
"<attrAction>"
]
=
attrAction
...
...
lib/python/TAL/tests/input/test16.html
View file @
c3eddb05
<a
href=
"valid/link.html"
tal:attributes=
"href python:'/base/' + attrs['href']"
>
blah, blah
</a>
<input
tal:attributes=
"value string:a "laser""
/>
lib/python/TAL/tests/output/test16.html
View file @
c3eddb05
<a
href=
"/base/valid/link.html"
>
blah, blah
</a>
<input
value=
"a "laser""
/>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment