Commits

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

Comments (0)

Files changed (1)

File cherrypy/__init__.py

     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]