Message56909
This is probably overkill, but I've created a Python script (attached)
that runs all the tests given in Section 5.4 of RFC 3986. It reports
the following:
baseurl=http://a/b/c/d;p?q
failed for ?y: got http://a/b/c/?y, expected http://a/b/c/d;p?y
failed for ../../../g: got http://a/../g, expected http://a/g
failed for ../../../../g: got http://a/../../g, expected http://a/g
failed for /./g: got http://a/./g, expected http://a/g
failed for /../g: got http://a/../g, expected http://a/g
failed for http:g: got http://a/b/c/g, expected http:g
The last of these is sanctioned by the RFC as acceptable for backward
compatibility, so I'll ignore that. The remainder suggest that in
addition to the query-relative bug, there is a problem with not reducing
"/./" to just "/", and with dropping excess occurrences of ".." that
would go above the root. On the other hand, these additional issues are
listed in the RFC as "abnormal" so I'm not sure if people are going to
want to put in the time to address them. |
|
| Date |
User |
Action |
Args |
| 2007-10-29 16:38:16 | ijmorlan | set | spambayes_score: 0.0240799 -> 0.0240799 recipients:
+ ijmorlan, skip.montanaro, jjlee, dalke, paulj |
| 2007-10-29 16:38:16 | ijmorlan | set | spambayes_score: 0.0240799 -> 0.0240799 messageid: <1193675896.48.0.0706475211523.issue1462525@psf.upfronthosting.co.za> |
| 2007-10-29 16:38:16 | ijmorlan | link | issue1462525 messages |
| 2007-10-29 16:38:15 | ijmorlan | create | |
|