Skip to content

Commit

Permalink
Merge pull request #18 from zopefoundation/prevent_interpolation_in_c…
Browse files Browse the repository at this point in the history
…omments

Prevent interpolations in comments
  • Loading branch information
dataflake committed Mar 31, 2020
2 parents ed0daba + d6593ca commit a1bf70d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Expand Up @@ -9,6 +9,10 @@

- Add support for Python 3.8

- Prevent interpolation (i.e. ``$``*var*, ``${``*path*``}`` replacements)
inside comments
(`Zope #716 <https://github.com/zopefoundation/Zope/issues/716>`_).


3.2.0 (2019-01-05)
==================
Expand Down
3 changes: 3 additions & 0 deletions src/z3c/pt/pagetemplate.py
Expand Up @@ -101,6 +101,9 @@ class BaseTemplate(template.PageTemplate):

trim_attribute_space = True

# https://github.com/zopefoundation/Zope/issues/716
enable_comment_interpolation = False

@property
def boolean_attributes(self):
if self.content_type == "text/xml":
Expand Down

0 comments on commit a1bf70d

Please sign in to comment.