[dokuwiki] data plugin mangles URLs

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.

Suggested change:
   $value = strtolower($value);
   if(!preg_match('!^[a-z]+://!',$value)) $value='http://'.$value;
to
   if(!preg_match('!^[a-zA-Z]+://!',$value)) $value='http://'.$value;

~fantasai

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

Other related posts: