Commits

Anonymous committed 8e5e01e

Fixed small bug in _cphttptools.canonicalizeUrl

  • Participants
  • Parent commits bd8a584
  • Branches cherrypy

Comments (0)

Files changed (1)

File _cphttptools.py

                 # browserUrl is request.base
                 newUrl = cpg.request.base + '/' + newUrl
             else:
+                i = cpg.request.browserUrl.rfind('/')
                 newUrl = cpg.request.browserUrl[:i+1] + newUrl
     return newUrl