Browse Source

TARGET_J2EE:

resolve action url as relative

svn path=/trunk/mcs/; revision=92845
Igor Zelmanovich 18 years ago
parent
commit
1c19004b60
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs

+ 1 - 1
mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlForm.cs

@@ -261,7 +261,7 @@ namespace System.Web.UI.HtmlControls
 			// Allow the page to transform action to a portlet action url
 			string customAction = Attributes ["action"];
 			if (String.IsNullOrEmpty(customAction))
-				action = CreateActionUrl (Page.Request.CurrentExecutionFilePath + Page.Request.QueryStringRaw);
+				action = CreateActionUrl (VirtualPathUtility.ToAppRelative (Page.Request.CurrentExecutionFilePath) + Page.Request.QueryStringRaw);
 			else
 				action = customAction;