[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:
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
- Follow-Ups:
- [dokuwiki] Re: data plugin mangles URLs
- From: Kim Goldenberg
- [dokuwiki] Re: data plugin mangles URLs
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] data plugin mangles URLs
- » [dokuwiki] Re: data plugin mangles URLs
- » [dokuwiki] Re: data plugin mangles URLs
- » [dokuwiki] Re: data plugin mangles URLs
- » [dokuwiki] Re: data plugin mangles URLs
- [dokuwiki] Re: data plugin mangles URLs
- From: Kim Goldenberg
- [dokuwiki] Re: data plugin mangles URLs
- From: Andreas Gohr