Commits

Anonymous committed 1cfef8a

Fix SF bug [ #416231 ] urllib.basejoin fails to apply some ../.
Reported by Juan M. Bello Rivas.

  • Participants
  • Parent commits dd6be62
  • Branches legacy-trunk

Comments (0)

Files changed (1)

                 basepath = ''
 
         path = basepath + path
+    if host and path and path[0] != '/':
+        path = '/' + path
     if type and host: return type + '://' + host + path
     elif type: return type + ':' + path
     elif host: return '//' + host + path # don't know what this means