$url = '/';
if (isset(\Input::server('HTTP_REFERER')) and strpos(\Input::server('HTTP_REFERER'), Uri::base())=== 0)
{
$url = \Input::server('HTTP_REFERER');
}
\Response::redirect($url);
if (isset(\Input::server('HTTP_REFERER')) and strpos(\Input::server('HTTP_REFERER'), Uri::base())=== 0)is
if (\Input::server('HTTP_REFERER', false) and strpos(\Input::server('HTTP_REFERER'), Uri::base())=== 0)
It looks like you're new here. If you want to get involved, click one of these buttons!