[New-bugs-announce] [issue2583] urlparse normalize URL path

monk.e.boy report at bugs.python.org
Tue Apr 8 15:56:58 CEST 2008

New submission from monk.e.boy <johng at neutralize.com>:

  This is my first problem with anything Python :-) and my first issue.

  Doing in the following:

  urlparse.urljoin( 'http://site.com/', '../../../../path/' )

  urlparse.urljoin( 'http://site.com/', '/path/../path/.././path/./' )

These URLs are normalized to http://site.com/path/ in both Firefox and
Google (the google spider would follow these OK)

  I think the documentation could be improved to point at the
posixpath.py normpath function and how it solves the above. I blogged a
how to:


I hope my bug report is OK. Thanks for all the code :-)

johng at neutralize.com

components: Library (Lib)
messages: 65162
nosy: monk.e.boy
severity: normal
status: open
title: urlparse normalize URL path
type: behavior
versions: Python 2.5

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list