Menu

#8 StyleSheetParser fails to map the path of stylesheet

open
nobody
None
5
2004-03-22
2004-03-22
Anonymous
No

Hi, i found a bug that incorrectly maps the path of a
designtimecss.

The problem is when you have an app installed in a url
like the example:
http://localhost/webapp1/admin/zzz.aspx

using the original code the path of the css will be
resolved incorrectly as:
c:\inetpub\wwwroot\webapp1\webapp1
\admin\designtime.css
(look at the repetition of the web app name)

I changed the line 17 in the StyleSheetParser.cs source
to be
------------------------------
sheetLocation =
System.Web.HttpContext.Current.Server.MapPath
(sheetLocation);
------------------------------

instead of the original
------------------------------
sheetLocation =
System.Web.HttpContext.Current.Request.PhysicalApplic
ationPath + sheetLocation.Replace("/","\\");
------------------------------

and it worked...

best regards, and keep up with the good work...

Rui Barbosa
rui.barbosa@devscope.net

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.