Error if $_SERVER['HTTP_REFERER'] not present
Toutouwai opened this issue · comments
Robin Sallis commented
In some situations $_SERVER['HTTP_REFERER']
may not be present (e.g. referrer is disabled), which causes a PHP notice and failed redirect.
Suggest a change here:
if(isset($_SERVER['HTTP_REFERER'])) {
$this->session->redirect($_SERVER['HTTP_REFERER']);
$this->halt();
}
Roland Toth Pal commented
Thanks, I will include in 1.9.4.
Robin Sallis commented
Thanks for the update.