Skip Menu |

This queue is for tickets about the Text-WikiCreole CPAN distribution.

Report information
The Basics
Id: 51070
Status: open
Priority: 0/
Queue: Text-WikiCreole

People
Owner: Nobody in particular
Requestors: oystein.torget [...] dnv.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.07
Fixed in: (no value)



Subject: Windows newline not interpreted correctly.
When running a web application under IIS on Windows newlines in form fields are encoded as \r\n. Because of this the parser does not seem to recognize newlines properly. The following change on line 41 seems to do the trick, but should also be tested on other platforms. my $eol = '(?:\r\n|\n|$)'; # end of line (or string)
On 2009-11-03 07:33:54, oyse wrote: Show quoted text
> When running a web application under IIS on Windows newlines in form > fields are encoded as \r\n. Because of this the parser does not seem to > recognize newlines properly.
As I understand it, this is an application error, not an error in T::WC. I don't use Windows and can't give precise details, but the principle is easy. You need to decode all input when you read it and after its decoded, the newline will match "\n". Probably best to use one of the HTML form handling modules to deal with charsets as well as platform issues.