From 2ba3340778dc13580d76994fd7a0cd13cefaf120 Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Fri, 3 Feb 2017 14:15:20 +0100 Subject: [PATCH] Update Result.php --- app/Models/Result.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Models/Result.php b/app/Models/Result.php index e5781c25f..73096f5d2 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -279,8 +279,13 @@ class Result $tmp = $link; $tmp = preg_replace("/\r?\n$/s", "", $tmp); + $tmp = str_replace("=", "=3d", $tmp); + $tmp = str_replace("?", "=3f", $tmp); + $tmp = str_replace("%", "=25", $tmp); + $tmp = str_replace("&", "=26", $tmp); + $tmp = str_replace(";", "=3b", $tmp); $tmp = preg_replace("#^([\w+.-]+)://#s", "$1/", $tmp); - return "https://proxy.suma-ev.de/cgi-bin/nph-proxy.cgi/en/I0/" . $tmp; + return "https://proxy.suma-ev.de/mger/en/w0/" . $tmp; } -- GitLab