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
f07df416
Commit
f07df416
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
ad2ff265
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+3
-0
No files found.
doc/CHANGES.txt
View file @
f07df416
...
...
@@ -8,6 +8,8 @@ Zope Changes
Bugs fixed
- LP #491224: proper escaping of rendered error message
- Also look for ZEXP imports within the clienthome directory. This
provides a place to put imports that won't be clobbered by buildout
in a buildout-based Zope instance.
...
...
lib/python/OFS/SimpleItem.py
View file @
f07df416
...
...
@@ -36,6 +36,7 @@ from DocumentTemplate.html_quote import html_quote
from
DocumentTemplate.ustr
import
ustr
from
ExtensionClass
import
Base
from
webdav.Resource
import
Resource
from
webdav.xmltools
import
escape
as
xml_escape
from
zExceptions
import
Redirect
from
zExceptions.ExceptionFormatter
import
format_exception
from
zope.interface
import
implements
...
...
@@ -228,6 +229,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs, Traversable,
else
:
v
=
HTML
.
__call__
(
s
,
client
,
REQUEST
,
**
kwargs
)
except
:
logger
.
error
(
'Exception while rendering an error message'
,
exc_info
=
True
...
...
@@ -243,6 +245,7 @@ class Item(Base, Resource, CopySource, App.Management.Tabs, Traversable,
"event log for full details: %s)"
)
%
(
html_quote
(
sys
.
exc_info
()[
1
]),
))
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