Branches

robust-path-regexp

View source
robust-path-regexp
  • Contributors
    1. Loading...
Author Commit Message Labels Comments Date
Chris Adams
Fix tests to match actual Django URL dispatch
Chris Adams
Handle in-the-wild URLs with embedded newlines I've seen requests from Googlebot following malformed links which produced an endless redirect chain like '/foo -> /en/foo -> /en/en/foo'. This did not cause problems but changing the PATH_RE flags allows returning a simple 404 quickly.