]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Bugfix: Splitting von CGI::Ajax war buggy.
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 27 Jul 2009 11:49:51 +0000 (13:49 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 28 Aug 2009 15:11:51 +0000 (17:11 +0200)
modules/override/CGI/Ajax.pm

index f4e063e11e5d488e0fc00286b2af2e8963762c21..461adf378200d3920a2c640ae1ac91e1fe36e560 100644 (file)
@@ -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]; }