|can't get raw output in symfony 1.0.21 [message #102436]
||Tue, 13 July 2010 19:45
Registered: November 2009
i know symfony 1.0.21 is out of date but still use it at work and was hopin someone knew a quick fix off top of their head...
So after a user signup page, it redirects to:
$this->redirect('signup/thankyou?email='. urlencode($this->email) );
I added the url encode cause some emails are like firstname.lastname@example.org...
In the executeThankyou action to display it in the view:
$this->getRequestParameter('email') replaces the + with a a space...
Only thing i saw that i thought may work is using
$sf_data->getRaw('email', ESC_RAW) in the view, but even the 'raw data' has a space in place for the + char.
Any idea how to do this without turning off output escaping for the site...
(EDIT: in fact output escaping is not the issue and turning off doesnt help. Im guessing its a bug intrepeting/decoding urls, yes?)
Think getPathInfo() gets the + even though %2B passed.
I just know going straight to
http://theurl/module/action?email=test%2B1%40example.com works but when symfony's redirect function tries to goto
it doesn't decode the params from the url properly
I'll upload a simple example later if no one answers to help peeps debug issue.
Lemme know if its a bug,
[Updated on: Wed, 14 July 2010 16:42]