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
70748a88
Commit
70748a88
authored
Jan 11, 2010
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- LP #491224: proper escaping of rendered error message
parent
62a61f15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/OFS/SimpleItem.py
src/OFS/SimpleItem.py
+2
-0
No files found.
doc/CHANGES.rst
View file @
70748a88
...
...
@@ -126,6 +126,8 @@ Features Added
Bugs
Fixed
++++++++++
-
LP
#
491224
:
proper
escaping
of
rendered
error
message
-
LP
#
246983
:
Enabled
unicode
conflict
resolution
on
variables
inside
"string:"
expressions
in
TALES
.
...
...
src/OFS/SimpleItem.py
View file @
70748a88
...
...
@@ -50,6 +50,7 @@ from DocumentTemplate.ustr import ustr
from
ExtensionClass
import
Base
from
Persistence
import
Persistent
from
webdav.Resource
import
Resource
from
webdav.xmltools
import
escape
as
xml_escape
from
zExceptions
import
Redirect
from
zExceptions
import
upgradeException
from
zExceptions.ExceptionFormatter
import
format_exception
...
...
@@ -310,6 +311,7 @@ class Item(Base,
# return the rendered exception and let the
# ZPublisher Exception Hook deal with it.
return
error_type
,
v
,
tb
v
=
xml_escape
(
v
)
raise
error_type
,
v
,
tb
finally
:
if
hasattr
(
self
,
'_v_eek'
):
del
self
.
_v_eek
...
...
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