diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/_diffs/js/custom.js b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/_diffs/js/custom.js index d8fc3572..58d96b4b 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/_diffs/js/custom.js +++ b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/_diffs/js/custom.js @@ -6,7 +6,7 @@ $(document).ready(function () { var doAsUserId = getParameterByName('doAsUserId'); if(doAsUserId != null){ $.each($('.doasuser-class a'), function(index, val) { - $(this).attr('href', $(this).attr('href')+'?doAsUserId='+doAsUserId); + $(this).attr('href', $(this).attr('href')+'?doAsUserId='+encodeURIComponent(doAsUserId)); }); } diff --git a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/js/custom.js b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/js/custom.js index d8fc3572..58d96b4b 100644 --- a/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/js/custom.js +++ b/liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/js/custom.js @@ -6,7 +6,7 @@ $(document).ready(function () { var doAsUserId = getParameterByName('doAsUserId'); if(doAsUserId != null){ $.each($('.doasuser-class a'), function(index, val) { - $(this).attr('href', $(this).attr('href')+'?doAsUserId='+doAsUserId); + $(this).attr('href', $(this).attr('href')+'?doAsUserId='+encodeURIComponent(doAsUserId)); }); }