r109672 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109671‎ | r109672 | r109673 >
Date:01:48, 21 January 2012
Author:ben
Status:ok
Tags:
Comment:
the AUTH match was too strict. It must match not only AUTH_abcd123... but AUTH_abc-123-...
Modified paths:
  • /trunk/extensions/SwiftMedia/wmf/rewrite.py (modified) (history)

Diff [purge]

Index: trunk/extensions/SwiftMedia/wmf/rewrite.py
@@ -166,7 +166,7 @@
167167 req.path_info = req.path_info.replace('//', '/')
168168
169169 # If it already has AUTH, presume that it's good. #07. fixes bug 33620
170 - hasauth = re.search('/AUTH_[0-9a-fA-F]{32}/', req.path)
 170+ hasauth = re.search('/AUTH_[0-9a-fA-F-]{32,36}', req.path)
171171 if req.path.startswith('/auth') or hasauth:
172172 return self.app(env, start_response)
173173

Status & tagging log