This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author monk.e.boy
Recipients monk.e.boy
Date 2008-04-08.13:56:57
SpamBayes Score 0.18096545
Marked as misclassified No
Message-id <1207663018.75.0.231530474022.issue2583@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,
  This is my first problem with anything Python :-) and my first issue.

  Doing in the following:

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

  urlparse.urljoin( 'http://site.com/', '/path/../path/.././path/./' )
  '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:

http://teethgrinder.co.uk/blog/Normalize-URL-path-python/

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

johng@neutralize.com
History
Date User Action Args
2008-04-08 13:56:59monk.e.boysetspambayes_score: 0.180965 -> 0.18096545
recipients: + monk.e.boy
2008-04-08 13:56:58monk.e.boysetspambayes_score: 0.180965 -> 0.180965
messageid: <1207663018.75.0.231530474022.issue2583@psf.upfronthosting.co.za>
2008-04-08 13:56:58monk.e.boylinkissue2583 messages
2008-04-08 13:56:57monk.e.boycreate