[dokuwiki] data plugin mangles URLs

  • From: fantasai <fantasai.lists@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 03 Oct 2008 15:40:22 -0700

The call to strtolower in helper.php for the data plugin:
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;
   if(!preg_match('!^[a-zA-Z]+://!',$value)) $value='http://'.$value;


DokuWiki mailing list - more info at

Other related posts: