[Catalyst] POST value line-endings in Textarea

John M. Dlugosz wxju46gefd at snkmail.com
Wed Apr 13 13:17:21 GMT 2011

The string I end up with, when the user supplied stuff using a TEXTAREA in a form, 
contains 0D 0A line endings.  This gets passed through as-is until the data runs into 
something that doesn't like it.

I would think that the strings imported into Perl would be immediately massaged into 
Perl's preferred internal form, which is different from the "network" format used by 
HTTP.  It seems that this would be the best place to deal with it; nip the problem in the 
bud.  After all, if reading text files, I absorb the line-ending differences at that 
point.  It's no different here, right?

If I'm thinking along the right lines, how do I set up Catalyst to do it at that point?


More information about the Catalyst mailing list