diff --git a/app/MetaGer.php b/app/MetaGer.php index 13d095a945f26da1a5b326847a10a9af2f564104..b091ec2a2badc1f2b5c37ac212b2b368afbdc519 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -362,8 +362,8 @@ class MetaGer $targetUrl = $result->anzeigeLink; if(strpos($targetUrl, "http") !== 0) $targetUrl = "http://" . $targetUrl; - $hash = md5($targetUrl . $privateKey); - $newLink = "https://api.smartredirect.de/api_v2/ClickGate.php?p=" . $publicKey . "&k=" . $hash . "&url=" . urlencode($targetUrl) . "&q=" . $query; + $gateHash = md5($targetUrl . $privateKey); + $newLink = "https://api.smartredirect.de/api_v2/ClickGate.php?p=" . $publicKey . "&k=" . $gateHash . "&url=" . urlencode($targetUrl) . "&q=" . $query; $result->link = $newLink; $result->partnershop = true; }