[Mono-dev] [PATCH] System.Web.UI.Page fix

Andrew Skiba andrews at mainsoft.com
Wed Jul 26 10:25:17 EDT 2006


Hi Gonzalo,

Sorry for late answer. Lost track of this patch somehow.

There is no mixing of virtual and physical pathes here. In string
returned by Path.GetFileName there are no path separators, so the result
is a virtual path. It's resolved with ResolveUrl when HtmlLink is
created.

Regards,
Andrew.

> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com 
> [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf 
> Of Gonzalo Paniagua Javier
> Sent: Friday, July 14, 2006 01:22
> To: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] [PATCH] System.Web.UI.Page fix
> 
> On Sun, 2006-07-09 at 08:41 -0700, Andrew Skiba wrote:
> [...]
> >                         for (int i = 0; i < css_files.Length; i++)
> > -                               css_urls [i] = UrlUtils.Combine
> > (physicalPath, Path.GetFileName (css_files [i]));
> > +                               css_urls [i] = virtualPath +
> > Path.GetFileName (css_files [i]);
> >                         ptp.LinkedStyleSheets = css_urls;
> [...]
> 
> Notice how physical and virtual paths are mixed here. That 
> will fail on
> windows.
> 
> -Gonzalo
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 



More information about the Mono-devel-list mailing list