Commit cbe91093 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Der Dublettenfilter sollte nun http[s]:// und www. ignorieren

parent ef52af00
...@@ -987,6 +987,13 @@ class MetaGer ...@@ -987,6 +987,13 @@ class MetaGer
} }
public function addLink($link) 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); $hash = md5($link);
if(isset($this->addedLinks[$hash])) if(isset($this->addedLinks[$hash]))
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment