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

Merge branch '155-http-und-https-treffer-von-einer-webseite' into 'development'

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

Closes #155

See merge request !227
parents ef52af00 cbe91093
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