r111479 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111478‎ | r111479 | r111480 >
Date:20:21, 14 February 2012
Author:aaron
Status:ok
Tags:
Comment:
Make URI regex failures give 404 per tim
Modified paths:
  • /trunk/extensions/SwiftMedia/wmf/rewrite.py (modified) (history)

Diff [purge]

Index: trunk/extensions/SwiftMedia/wmf/rewrite.py
@@ -252,7 +252,7 @@
253253 resp = webob.exc.HTTPNotImplemented('Unknown Status: %s' % (status)) #10
254254 return resp(env, start_response)
255255 else:
256 - resp = webob.exc.HTTPBadRequest('Regexp failed: "%s"' % (req.path)) #11
 256+ resp = webob.exc.HTTPNotFound('Regexp failed to match URI: "%s"' % (req.path)) #11
257257 return resp(env, start_response)
258258
259259 def filter_factory(global_conf, **local_conf):

Status & tagging log