Merge pull request #2408 from annando/1603-goaway

Another fix for "goaway". Hopefully now finale.
This commit is contained in:
Tobias Diekershoff 2016-03-12 07:29:32 +01:00
commit 08b69892e8

View file

@ -1558,7 +1558,7 @@ function killme() {
* @brief Redirect to another URL and terminate this process.
*/
function goaway($s) {
if (!strstr(normalise_link($s), normalise_link(App::get_baseurl())))
if (!strstr(normalise_link($s), "http://"))
$s = App::get_baseurl()."/".$s;
header("Location: $s");