diff --git a/app/Models/Result.php b/app/Models/Result.php index 7bc5d129741399d3fabb024cf1e137128c9ae505..6ff2db9601dc82f020b19867602e5e602f0fe627 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -315,7 +315,15 @@ class Result if (!$link) { return ""; } - + + # Link to our new Proxy software: + $pw = md5(env('PROXY_PASSWORD') . $link); + + $proxyUrl = base64_encode(str_rot13($link)); + $proxyUrl = urlencode(str_replace("/", "<<SLASH>>", $proxyUrl)); + + return "https://proxy.suma-ev.de/" . $pw . "/" . $proxyUrl; +/* $tmp = $link; $tmp = preg_replace("/\r?\n$/s", "", $tmp); $tmp = str_replace("=", "=3d", $tmp); @@ -326,7 +334,7 @@ class Result $tmp = preg_replace("#^([\w+.-]+)://#s", "$1/", $tmp); $tmp = str_replace("//", "/=2f", $tmp); return "https://proxy.suma-ev.de/mger/nph-proxy.cgi/en/w0/" . $tmp; - +*/ } /* Liest aus einer URL alle Informationen aus