From: Sven Schöling Date: Mon, 27 Jul 2009 11:49:51 +0000 (+0200) Subject: Bugfix: Splitting von CGI::Ajax war buggy. X-Git-Tag: release-2.6.1beta1~323 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0784cc502c3901d8692e559d368d0bfef090d7d5;p=kivitendo-erp.git Bugfix: Splitting von CGI::Ajax war buggy. --- diff --git a/modules/override/CGI/Ajax.pm b/modules/override/CGI/Ajax.pm index f4e063e11..461adf378 100644 --- a/modules/override/CGI/Ajax.pm +++ b/modules/override/CGI/Ajax.pm @@ -835,7 +835,7 @@ pjx.prototype = { var rsp = $decodefn(this.r.responseText); /* the response from perl */ var splitval = '__pjx__'; /* to split text */ /* fix IE problems with undef values in an Array getting squashed*/ - rsp = rsp.replace(splitval+splitval+'g',splitval+" "+splitval); + rsp = rsp.replace(new RegExp(splitval+splitval, "g"),splitval+" "+splitval); var data = rsp.split(splitval); dt = this.target; if (dt.constructor != Array) { dt=[dt]; }