sforkowany z mirror/friendica
Another fix for "goaway". Hopefully now finale.
rodzic
a28d44a9ba
commit
3189f0e23c
2
boot.php
2
boot.php
|
@ -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");
|
||||
|
|
Ładowanie…
Reference in New Issue