On May 15, 2:59 pm, "David Ashwood" <da...@inspiredthinking.co.uk>
wrote:
> Nick,
> You'll need to urlencode the string to use it when you append it to the post
> url.
>

The variable from the form isn't really a problem. But that is not
where the problem is. I did this:


<form action="<?php echo url_for('@sf_guard_signin') ?>"
method="post">
  <table>
    <?php echo $form ?>
  </table>
  <input type="submit" value="sign in" />
  <input type="hidden" name="redirect" value="<?php echo urlencode
($sf_request->getUri()) ?>" />
</form>


So now I've got an urlencoded() version of getUri in the form. But
this is useless. In actions.class.php, I could try something like
this:

return $this->redirect(urldecode($request->getParameter('redirect'));

But this simply gives me an infinite loop of redirection. Somehow this
redirect happens before Symfony is aware of me being logged in? So it
keeps trying to log me in, and it keeps getting redirected? Anyway, is
this an appropriate use of $this->redirect()?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to