https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111479
Revision: 111479 Author: aaron Date: 2012-02-14 20:21:26 +0000 (Tue, 14 Feb 2012) Log Message: ----------- Make URI regex failures give 404 per tim Modified Paths: -------------- trunk/extensions/SwiftMedia/wmf/rewrite.py Modified: trunk/extensions/SwiftMedia/wmf/rewrite.py =================================================================== --- trunk/extensions/SwiftMedia/wmf/rewrite.py 2012-02-14 20:20:56 UTC (rev 111478) +++ trunk/extensions/SwiftMedia/wmf/rewrite.py 2012-02-14 20:21:26 UTC (rev 111479) @@ -252,7 +252,7 @@ resp = webob.exc.HTTPNotImplemented('Unknown Status: %s' % (status)) #10 return resp(env, start_response) else: - resp = webob.exc.HTTPBadRequest('Regexp failed: "%s"' % (req.path)) #11 + resp = webob.exc.HTTPNotFound('Regexp failed to match URI: "%s"' % (req.path)) #11 return resp(env, start_response) def filter_factory(global_conf, **local_conf): _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs