mirror of
https://github.com/python/cpython.git
synced 2025-08-08 10:58:51 +00:00
Merged revisions 87329 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87329 | senthil.kumaran | 2010-12-17 12:48:45 +0800 (Fri, 17 Dec 2010) | 3 lines Fix Issue9721 - urljoin behavior when the relative url starts with ';' ........
This commit is contained in:
parent
3e8cd62d03
commit
5c7fd6eefa
3 changed files with 7 additions and 7 deletions
|
@ -256,14 +256,9 @@ def urljoin(base, url, allow_fragments=True):
|
|||
if path[:1] == '/':
|
||||
return urlunparse((scheme, netloc, path,
|
||||
params, query, fragment))
|
||||
if not path:
|
||||
if not path and not params:
|
||||
path = bpath
|
||||
if not params:
|
||||
params = bparams
|
||||
else:
|
||||
path = path[:-1]
|
||||
return urlunparse((scheme, netloc, path,
|
||||
params, query, fragment))
|
||||
params = bparams
|
||||
if not query:
|
||||
query = bquery
|
||||
return urlunparse((scheme, netloc, path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue