From 0784cc502c3901d8692e559d368d0bfef090d7d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 27 Jul 2009 13:49:51 +0200 Subject: [PATCH] Bugfix: Splitting von CGI::Ajax war buggy. --- modules/override/CGI/Ajax.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- 2.20.1