diff options
author | Guido van Rossum <guido@python.org> | 1998-12-18 15:25:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-18 15:25:22 (GMT) |
commit | 33add0a95aa6c5ba5dbb8cae7b51a253209ecd6f (patch) | |
tree | 906438c8bced8f11620b5e66117ecc9c1a5b22e8 /BeOS/ar-fake | |
parent | dc86a4e5bb537c979377d43e7eafeb473196b5e0 (diff) | |
download | cpython-33add0a95aa6c5ba5dbb8cae7b51a253209ecd6f.zip cpython-33add0a95aa6c5ba5dbb8cae7b51a253209ecd6f.tar.gz cpython-33add0a95aa6c5ba5dbb8cae7b51a253209ecd6f.tar.bz2 |
Sjoerd Mullender:
File names with "funny" characters get translated wrong by
pathname2url (any variety). E.g. the (Unix) file "/ufs/sjoerd/#tmp"
gets translated into "/ufs/sjoerd/#tmp" which, when interpreted as a
URL is file "/ufs/sjoerd/" with fragment ID "tmp".
Here's an easy fix. (An alternative fix would be to change the
various implementations of pathname2url and url2pathname to include
calls to quote and unquote.
[The main problem is with the normal use of URLs:
url = url2pathname(file)
transmit url
url, tag = splittag(url)
urlopen(url)
]
In addition, this patch fixes some uses of unquote:
- the host part of URLs should be unquoted
- the file path in the FTP URL should be unquoted before it is split
into components.
- because of the latter, I removed all unquoting from ftpwrapper,
and moved it to the caller, but that is not essential
Diffstat (limited to 'BeOS/ar-fake')
0 files changed, 0 insertions, 0 deletions