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:59 | monk.e.boy | set | spambayes_score: 0.180965 -> 0.18096545 recipients: + monk.e.boy |
| 2008年04月08日 13:56:58 | monk.e.boy | set | spambayes_score: 0.180965 -> 0.180965 messageid: <1207663018.75.0.231530474022.issue2583@psf.upfronthosting.co.za> |
| 2008年04月08日 13:56:58 | monk.e.boy | link | issue2583 messages |
| 2008年04月08日 13:56:57 | monk.e.boy | create | |