Skip to content

Commit

Permalink
Fixed issues in FileSystem.cs where we were using the request to reso…
Browse files Browse the repository at this point in the history
…lve the application path.
  • Loading branch information
jetheredge committed Nov 28, 2011
1 parent ec09530 commit e3e52b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SquishIt.Framework/FileSystem.cs
Expand Up @@ -38,9 +38,9 @@ public static string ResolveAppRelativePathToFileSystem(string file)

public static string ResolveFileSystemPathToAppRelative(string file)
{
if (HttpContext.Current != null)
if (HttpContext.Current != null)
{
var root = new Uri (HttpContext.Current.Request.PhysicalApplicationPath);
var root = new Uri(HttpContext.Current.Server.MapPath("/"));
return root.MakeRelativeUri (new Uri (file, UriKind.RelativeOrAbsolute)).ToString ();
}
else
Expand Down

0 comments on commit e3e52b3

Please sign in to comment.