rolandtoth / AdminOnSteroids

Various ProcessWire admin tweaks to boost productivity.

Home Page:https://processwire.com/talk/topic/13389-adminonsteroids/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error if $_SERVER['HTTP_REFERER'] not present

Toutouwai opened this issue · 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.