From: ivan Date: Thu, 17 Nov 2005 10:14:51 +0000 (+0000) Subject: fix konqueror bug appending nulls to XMLHTTP requests! X-Git-Tag: BEFORE_FINAL_MASONIZE~311 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=367e6975af9f9cfb35ad951d4ea926db10caa514 fix konqueror bug appending nulls to XMLHTTP requests! --- diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 4a324ec70..11e4804fe 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -164,6 +164,9 @@ sub process { # XXX this should parse JSON foo and build a proper data structure my @args = $cgi->param('arg'); + #work around konqueror bug! + @args = map { s/\x00$//; $_; } @args; + my $sub = $cgi->param('sub'); #???? warn "FS::UI::Web::JSRPC::process:\n".