Author: ndkhoiits
Date: 2011-04-22 01:03:22 -0400 (Fri, 22 Apr 2011)
New Revision: 6325
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo.js
Log:
GTNPORTAL-1871 Could not add new application to the page and appear the NPE on console
Modified: portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo.js
===================================================================
--- portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo.js 2011-04-21 21:44:47
UTC (rev 6324)
+++ portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo.js 2011-04-22 05:03:22
UTC (rev 6325)
@@ -112,7 +112,9 @@
if(params != null) {
var len = params.length ;
for(var i = 0 ; i < len ; i++) {
- href += "&" + params[i].name + "=" + params[i].value ;
+ var paramName = encodeURIComponent(params[i].name);
+ var paramValue = encodeURIComponent(params[i].value);
+ href += "&" + paramName + "=" + paramValue ;
}
}
if(useAjax) href += "&ajaxRequest=true" ;