/** * Escapes the URL for use in a redirect and checks that security settings * allow the URL is allowed for redirects. * * @param url the URL to escape * @return the escaped URL, or <code>null</code> if the URL is not allowed * for redirects */ public static String escapeRedirect(String url) { return getPortal().escapeRedirect(url); }
@Override protected void doProcessAction( ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { try { moveCategory(actionRequest, actionResponse); String redirect = _portal.escapeRedirect( ParamUtil.getString(actionRequest, "redirect")); if (Validator.isNotNull(redirect)) { actionResponse.sendRedirect(redirect); } } catch (PrincipalException pe) { SessionErrors.add(actionRequest, pe.getClass()); } }
String redirect = _portal.escapeRedirect( ParamUtil.getString(actionRequest, "redirect"));
String redirect = portal.escapeRedirect( ParamUtil.getString(actionRequest, "redirect"));