[dokuwiki] Re: data plugin mangles URLs

  • From: Kim Goldenberg <kgoldenberg@xxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 06 Oct 2008 13:24:44 -0400

Paul Bijnens wrote:
On 2008-10-06 17:10, Kim Goldenberg wrote:
fantasai wrote:
The call to strtolower in helper.php for the data plugin:
http://dev.splitbrain.org/darcsweb/darcsweb.cgi?r=dwplugins/data;a=headblob;f=/helper.php#l66
seems to be a problem. I don't know why you would call that on a URL.
A lot of them are case-sensitive and not lower-case.

According to RFC 2396, URIs (of which URLs are a part of) are case insensitive. Therefore, URLs are not "mangled: and no change is needed.

I can't find that in that rfc.

On the contrary, in Section 6 "URI Normalization and Equivalence",
there is explicitly stated that the "scheme and hostname are case
insensitive" if the scheme has a common syntax that implies this.

Nothing is said about the path and query part for the http scheme.
For the http scheme the hostname is indeed case insensitive.
But, as long as I know, the path and query parts of the http scheme are
surely case sentive.

I'm sorry. I missed that, and you, of course, are right.

Kim
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: