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
9b6892cc
Commit
9b6892cc
authored
Jul 05, 2006
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- reStructuredText/ZReST: setting raw_enabled to 0 for security reasons
parent
546f3456
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Products/ZReST/ZReST.py
lib/python/Products/ZReST/ZReST.py
+3
-0
lib/python/reStructuredText/__init__.py
lib/python/reStructuredText/__init__.py
+1
-0
No files found.
doc/CHANGES.txt
View file @
9b6892cc
...
...
@@ -18,6 +18,9 @@ Zope Changes
Bugs fixed
- reStructuredText/ZReST: setting raw_enabled to 0 for security
reasons
- OFS Application: Removed deprecation warnings added in Zope 2.8.5.
The warning period starts in Zope 2.9.0.
...
...
lib/python/Products/ZReST/ZReST.py
View file @
9b6892cc
...
...
@@ -210,6 +210,9 @@ class ZReST(Item, PropertyManager, Historical, Implicit, Persistent):
# disallow use of the .. include directive for security reasons
pub
.
settings
.
file_insertion_enabled
=
0
# disallow insertion of raw data for security reasons
pub
.
settings
.
raw_enabled
=
0
# don't break if we get errors
pub
.
settings
.
halt_level
=
6
...
...
lib/python/reStructuredText/__init__.py
View file @
9b6892cc
...
...
@@ -75,6 +75,7 @@ def render(src,
settings
[
'language_code'
]
=
language_code
settings
[
'language_code'
]
=
language_code
settings
[
'file_insertion_enabled '
]
=
0
settings
[
'raw_enabled'
]
=
0
# starting level for <H> elements:
settings
[
'initial_header_level'
]
=
initial_header_level
+
1
# set the reporting level to something sane:
...
...
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