Author: mhabersack
Date: 2007-11-02 20:38:00 -0500 (Fri, 02 Nov 2007)
New Revision: 88765
Modified:
trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI/Control.cs
Log:
2007-11-03 Marek Habersack <[EMAIL PROTECTED]>
* Control.cs: need to append a "/" to TemplateSourceDirectory
before calling VirtualPathUtility.Combine, in order to get the
correct physical path to the requested file. Combine looks for the
last occurrence of "/" to determine where the relative paths
should be joined.
Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2007-11-03 01:35:08 UTC
(rev 88764)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog 2007-11-03 01:38:00 UTC
(rev 88765)
@@ -1,5 +1,11 @@
2007-11-03 Marek Habersack <[EMAIL PROTECTED]>
+ * Control.cs: need to append a "/" to TemplateSourceDirectory
+ before calling VirtualPathUtility.Combine, in order to get the
+ correct physical path to the requested file. Combine looks for the
+ last occurrence of "/" to determine where the relative paths
+ should be joined.
+
* MinimizableAttributeTypeConverter.cs: don't throw on null value,
call the base class method in that case.
Modified: trunk/mcs/class/System.Web/System.Web.UI/Control.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Control.cs 2007-11-03 01:35:08 UTC
(rev 88764)
+++ trunk/mcs/class/System.Web/System.Web.UI/Control.cs 2007-11-03 01:38:00 UTC
(rev 88765)
@@ -1054,9 +1054,10 @@
string path;
if (master != null)
- path = VirtualPathUtility.Combine
(master.TemplateSourceDirectory, virtualPath);
+ path = VirtualPathUtility.Combine
(master.TemplateSourceDirectory + "/", virtualPath);
else
- path = VirtualPathUtility.Combine
(TemplateSourceDirectory, virtualPath);
+ path = VirtualPathUtility.Combine
(TemplateSourceDirectory + "/", virtualPath);
+
return page != null ? page.MapPath (path) :
Context.Server.MapPath (path);
}
#endif
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches