Fixes: U4-2653 BeginUmbracoForm should use absolute path with query string URLs without the protocol

This commit is contained in:
Shannon
2013-08-21 11:14:37 +10:00
parent 66c6b5b524
commit f51c4e332e
2 changed files with 2 additions and 2 deletions

View File

@@ -466,7 +466,7 @@ namespace Umbraco.Web
Mandate.ParameterNotNullOrEmpty(action, "action");
Mandate.ParameterNotNullOrEmpty(controllerName, "controllerName");
var formAction = UmbracoContext.Current.OriginalRequestUrl.ToString();
var formAction = UmbracoContext.Current.OriginalRequestUrl.PathAndQuery;
return html.RenderForm(formAction, FormMethod.Post, htmlAttributes, controllerName, action, area, additionalRouteVals);
}

View File

@@ -37,7 +37,7 @@ namespace Umbraco.Web.Routing
response.Write("<html><body><h1>Page not found</h1>");
response.Write("<h3>");
response.Write(string.Format(reason, HttpUtility.HtmlEncode(UmbracoContext.Current.OriginalRequestUrl)));
response.Write(string.Format(reason, HttpUtility.HtmlEncode(UmbracoContext.Current.OriginalRequestUrl.PathAndQuery)));
response.Write("</h3>");
if (!string.IsNullOrWhiteSpace(_message))
response.Write("<p>" + _message + "</p>");