#1164: turbogears.flash() doesn't work if string contains a comma
------------------------+---------------------------------------------------
Reporter: snej | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: TurboGears | Version: 1.0b1
Severity: normal | Keywords:
------------------------+---------------------------------------------------
The turbogears.flash() function doesn't work properly (usually has no
visible effect) if the message string parameter contains a comma (",")
character. I just spent about 20 minutes tearing out my hair trying to
figure out why the message wouldn't show up.
I believe this happens because the comma is a delimiter in HTTP cookie
syntax. TG would need to strip or escape comma characters when setting
cookies to avoid this problem. Alternatively, it could store the flash
message in the session dictionary instead of using a raw cookie for it.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1164>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---