*/
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws Exception {
String referer = DAVUtilities.encodePath(CoreUtil.getRequestReferer(request), false);
if(referer == null) {
throw new CoreException(ErrorConstants.ERR_MISSING_REQUEST_PARAMETER, ErrorConstants.CATEGORY_NAME, "referer");
}
String localeCode = request.getParameter("locale");
if(localeCode == null) {
throw new CoreException(ErrorConstants.ERR_MISSING_REQUEST_PARAMETER, ErrorConstants.CATEGORY_NAME, "locale");
}
/* Tokenize the locale parameter so we only get the first line. This prevents
* a header injection exploit as the (not validated) locale gets added as
* a cookie.