Skip to content

Commit

Permalink
Fixed invalid escape sequences.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Sep 10, 2020
1 parent c878fda commit d31efb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions news/3130.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed invalid escape sequences.
[maurits]
6 changes: 2 additions & 4 deletions plone/app/caching/operations/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@
logger = logging.getLogger('plone.app.caching')

parseETagLock = allocate_lock()
# etagQuote = re.compile('(\s*\"([^\"]*)\"\s*,{0,1})')
# etagNoQuote = re.compile('(\s*([^,]*)\s*,{0,1})')

etagQuote = re.compile('(\s*(W\/)?\"([^\"]*)\"\s*,?)')
etagNoQuote = re.compile('(\s*(W\/)?([^,]*)\s*,?)')
etagQuote = re.compile(r'(\s*(W\/)?"([^"]*)"\s*,?)')
etagNoQuote = re.compile(r'(\s*(W\/)?([^,]*)\s*,?)')

#
# Operation helpers, used in the implementations of interceptResponse() and
Expand Down

0 comments on commit d31efb9

Please sign in to comment.