php: 7
1) Don't allow new hostnames with extentions > 3 characters. (an so, don't allow hostnames like "localhost" or "x.localhost" for test...)
2) Don't allow character "," or "%" in path... Realy too restrictive here.
---> So it is impossible to use such URL in mp3 id3v2.3 tags (W???, etc...)
I replaced this function by this one (I think control must be done before user called the library, not by the library itself) :
Code: Select all
public function IsValidURL($url, $allowUserPass=false) {
return (bool) $url;
}
PS: it would be nicer if this fonction was static ;)