1. Walt Woods
  2. CherryPy_subhandler


Robert Brewer  committed 8cf389d

Fix for #1063 (cherrypy.url() recurses infinitely when cherrypy.request.app.relative_urls is set true and doens't equal 'server')

  • Participants
  • Parent commits 03e7802
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/__init__.py

View file
  • Ignore whitespace
     elif relative:
         # "A relative reference that does not begin with a scheme name
         # or a slash character is termed a relative-path reference."
-        old = url().split('/')[:-1]
+        old = url(relative=False).split('/')[:-1]
         new = newurl.split('/')
         while old and new:
             a, b = old[0], new[0]