Ticket #1164 (closed defect: fixed)
turbogears.flash() doesn't work if string contains a comma
|Reported by:||snej||Owned by:||jorge.vargas|
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.
- Priority changed from normal to low
- Owner changed from anonymous to jorge.vargas
- Severity changed from normal to trivial
- Milestone set to 1.0.2