Another fix for "goaway". Hopefully now finale.

This commit is contained in:
Michael Vogel 2016-03-11 20:43:31 +01:00
parent a28d44a9ba
commit 3189f0e23c

View File

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