Hi! :-)
In a executeIndex(...) I want to redirect to the referrer, but only if
the referrer is not the current action.
How can I do that?
//...
$ref = $request->getReferer();
if ($ref != ...what do I need HERE?...)
{
$this->redirect(empty($ref)?'@homepage':$ref);
}
}
//...
problem is that the getReferer() method returns not a route but a
string with the whole http-uri incl. server etc..
Thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en