Commits

mitar committed 2291eb9

Fixed some Unicode URL decoding errors.

  • Participants
  • Parent commits f8618be

Comments (0)

Files changed (1)

File navadd/navadd.py

             if forusers and req.authname not in forusers:
                 continue
 
-            if not req.environ['PATH_INFO'].startswith(url):
+            try:
+                if not req.environ['PATH_INFO'].startswith(url):
+                    continue
+            except UnicodeDecodeError:
                 continue
 
             if target not in ('mainnav', 'metanav'):