Skip Menu |

This queue is for tickets about the JavaScript-RPC CPAN distribution.

Report information
The Basics
Id: 14951
Status: resolved
Priority: 0/
Queue: JavaScript-RPC

People
Owner: bricas [...] cpan.org
Requestors: tylerm [...] activestate.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.06
Fixed in: 0.1



Subject: Does not correctly handle packets containing newlines
If the JSRS packet contains a newline (eg; data from a TEXTAREA element), it is truncated at that point, which can cause Bad Things to happen server-side. I've attached a patch that fixes the regular expression that pulls the packet out of the query. Cheers, Tyler
Index: lib/JavaScript/RPC/Server/CGI.pm --- lib/JavaScript/RPC/Server/CGI.pm.~1~ Wed Oct 5 17:26:58 2005 +++ lib/JavaScript/RPC/Server/CGI.pm Wed Oct 5 17:26:58 2005 @@ -107,7 +107,7 @@ # Extract parameters while( defined( $param = $query->param( "P$i" ) ) ) { - $param =~ s/^\[(.*)\]$/$1/; + $param =~ s/^\[(.*)\]$/$1/s; push @params, $param; $i++; } End of Patch.