Skip to content
Snippets Groups Projects
Commit cbe91093 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

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

parent ef52af00
No related branches found
No related tags found
1 merge request!227Der Dublettenfilter sollte nun http[s]:// und www. ignorieren
......@@ -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]))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment