[mapguide-commits] r4527 - sandbox/adsk/2.2gp/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Jan 12 21:23:26 EST 2010


Author: leaf
Date: 2010-01-12 21:23:26 -0500 (Tue, 12 Jan 2010)
New Revision: 4527

Modified:
   sandbox/adsk/2.2gp/Web/src/viewerfiles/util.js
Log:
Submit on behalf of Arthur Liu.

Fixed ticket #1191 Ajax viewer fail to display when map named with bracket.
In viewerfiles/utils.js brackets are replaced wih "%%28" and %%29", which should be "%28" and "%29". So, there will be a resource not found exception, because %%28 and %%29 will not be decoded to brackets 

Modified: sandbox/adsk/2.2gp/Web/src/viewerfiles/util.js
===================================================================
--- sandbox/adsk/2.2gp/Web/src/viewerfiles/util.js	2010-01-13 02:23:10 UTC (rev 4526)
+++ sandbox/adsk/2.2gp/Web/src/viewerfiles/util.js	2010-01-13 02:23:26 UTC (rev 4527)
@@ -2,7 +2,7 @@
 
 function encodeComponent(str) {
     op = /\(/g; cp = /\)/g;
-    return encodeURIComponent(str).replace(op, "%%28").replace(cp, "%%29");
+    return encodeURIComponent(str).replace(op, "%28").replace(cp, "%29");
 }
 
 function ParseLocalizedFloat(floatString) {



More information about the mapguide-commits mailing list