This commit is contained in:
wangyidong
2016-12-28 09:27:04 +08:00
parent 672e9df3cc
commit 0873ca1864
+1
View File
@@ -1148,6 +1148,7 @@ class hyperdown
*/
public function cleanUrl($url)
{
return $url;
if (preg_match("/^\s*((http|https|ftp|mailto):[x80-xff_a-z0-9-\.\/%#@\?\+=~\|\,&\(\)]+)/i", $url, $matches)) {
return $matches[1];
} else if (preg_match("/^\s*([x80-xff_a-z0-9-\.\/%#@\?\+=~\|\,&]+)/i", $url, $matches)) {