Commit 9b6892cc authored by Andreas Jung's avatar Andreas Jung

      - reStructuredText/ZReST: setting raw_enabled to 0 for security
        reasons
parent 546f3456
...@@ -18,6 +18,9 @@ Zope Changes ...@@ -18,6 +18,9 @@ Zope Changes
Bugs fixed Bugs fixed
- reStructuredText/ZReST: setting raw_enabled to 0 for security
reasons
- OFS Application: Removed deprecation warnings added in Zope 2.8.5. - OFS Application: Removed deprecation warnings added in Zope 2.8.5.
The warning period starts in Zope 2.9.0. The warning period starts in Zope 2.9.0.
......
...@@ -210,6 +210,9 @@ class ZReST(Item, PropertyManager, Historical, Implicit, Persistent): ...@@ -210,6 +210,9 @@ class ZReST(Item, PropertyManager, Historical, Implicit, Persistent):
# disallow use of the .. include directive for security reasons # disallow use of the .. include directive for security reasons
pub.settings.file_insertion_enabled = 0 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 # don't break if we get errors
pub.settings.halt_level = 6 pub.settings.halt_level = 6
......
...@@ -75,6 +75,7 @@ def render(src, ...@@ -75,6 +75,7 @@ def render(src,
settings['language_code'] = language_code settings['language_code'] = language_code
settings['language_code'] = language_code settings['language_code'] = language_code
settings['file_insertion_enabled '] = 0 settings['file_insertion_enabled '] = 0
settings['raw_enabled'] = 0
# starting level for <H> elements: # starting level for <H> elements:
settings['initial_header_level'] = initial_header_level + 1 settings['initial_header_level'] = initial_header_level + 1
# set the reporting level to something sane: # set the reporting level to something sane:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment