matethurzo/liferay-portal — pull request #324 by zsoltbalogh (2013-02-03 20:10:32+00:00)
Title: LPS-32231

(Not a support request, just fixing this for fun)

The browsers decode the URL which we give to the submitForm method and it causes the server to use the parameters of the redirect value.

The fix will use the HttpUtil.encodeURL(String) method as it seen in the dockbar/view.jsp.

This is only issue when as javascript: links (like this: javascript:submitForm(document.hrefFm, '" + HttpUtil.encodeURL(uninstallURL) + "')