From 2693b6b102dc5661cd1c196b37e910be4913bc8a Mon Sep 17 00:00:00 2001
From: Dominik Pfennig <dominik@suma-ev.de>
Date: Fri, 8 Sep 2017 13:22:17 +0200
Subject: [PATCH] Update MetaGer.php

---
 app/MetaGer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/MetaGer.php b/app/MetaGer.php
index 1e776909d..a243b1aa7 100644
--- a/app/MetaGer.php
+++ b/app/MetaGer.php
@@ -448,7 +448,7 @@ class MetaGer
             if (strpos($link, "http") !== 0) {
                 $link = "http://" . $link;
             }
-            $info = parse_url($url);
+            $info = parse_url($link);
             if(isset($info["host"])){
                 $host = $info['host'];
                 if(strpos($host, "amazon") !== FALSE){
-- 
GitLab