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.