Redirect to default page if referer isn't set

Instead of displaying `You should be redirected to <a href=""></a>`
This commit is contained in:
HungryFeline 2014-03-27 09:57:43 +01:00
parent 7a95325a5f
commit c215d6991a

View File

@ -53,6 +53,7 @@ class MassTagger extends Extension {
}
$page->set_mode("redirect");
if(!isset($_SERVER['HTTP_REFERER'])) $_SERVER['HTTP_REFERER'] = make_link();
$page->set_redirect($_SERVER['HTTP_REFERER']);
}
}