rolandtoth/AdminOnSteroids

Error if $_SERVER['HTTP_REFERER'] not present

Toutouwai opened this issue · 2 comments

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();
}

Thanks, I will include in 1.9.4.

Thanks for the update.