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

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

parent 16edb9f0
......@@ -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]))
{
......
Markdown is supported
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