Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
0e0c1a2d
Commit
0e0c1a2d
authored
Mar 20, 2017
by
Dominik Hebeler
Browse files
Update Result.php
parent
4819f14e
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Models/Result.php
View file @
0e0c1a2d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment