This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.0 » can't get raw output in symfony 1.0.21
can't get raw output in symfony 1.0.21 [message #102436] Tue, 13 July 2010 19:45 Go to next message
armyofda12mnkeys  is currently offline armyofda12mnkeys
Messages: 9
Registered: November 2009
Junior Member
hello,
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 testuser+5@test.com...


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
http://theurl/module/action/email=test%2B1%40example.com
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,
Thanks!

[Updated on: Wed, 14 July 2010 16:42]

Re: can't get raw output in symfony 1.0.21 [message #102550 is a reply to message #102436 ] Thu, 15 July 2010 18:50 Go to previous message
armyofda12mnkeys  is currently offline armyofda12mnkeys
Messages: 9
Registered: November 2009
Junior Member
Hmm not having issue when testing with fresh install...
Although here is an example attached and i caught another issue with interpreting GET params that have periods in them:

so put that in your apps dir.
goto http://yourvirtualhosturl/frontend

this goes to page1 action,
submit the default email as i wanted to test that...

this goes to page2 action...

click on the 2nd link which tries to goto /frontend/page3/get_email/test%40example.com ...
it doesnt work...

Click 1st link, it works fine when the period is removed. the email is urlencoded, not sure why the period messes things up.

Also saw this same problem here:
http://stackoverflow.com/questions/1590929/symfony-email-add ress-as-request-parameter

  • Attachment: testbug.zip
    (Size: 8.12KB, Downloaded 29 time(s))

[Updated on: Thu, 15 July 2010 18:51]

Previous Topic:How do I debug this?
Next Topic:Routing with default values exposes two URLs.
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software