diff --git a/app/MetaGer.php b/app/MetaGer.php index 30f421f9c87b4ab59ed545174c90f388aa4fcd4c..680c3115ed47920d55f09581b60493233c4cda50 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -987,6 +987,13 @@ class MetaGer } public function addLink($link) { + if(strpos($link, "http://") === 0) + $link = substr($link, 7); + if(strpos($link, "https://") === 0) + $link = substr($link, 8); + if(strpos($link, "www.") === 0) + $link = substr($link, 4); + $link = trim($link, "/"); $hash = md5($link); if(isset($this->addedLinks[$hash])) {