Skip to content

Commit

Permalink
Shazwazza#152 Enable local relative URIs to be processed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Budik committed Sep 27, 2018
1 parent d353cc1 commit ceeda59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public CompositeFileDefinition WritePathToStream(ClientDependencyType type, stri
&& uri.IsLocalUri(context)
//extract the path/query of the request and ensure it starts with the virtual path marker (~/) so that the file
//can only be looked up local to this website.
&& PathHelper.TryGetFileInfo(uri.PathAndQuery.EnsureStartsWith("/").EnsureStartsWith("~"), context, out var fi))
&& PathHelper.TryGetFileInfo(uri.MakeAbsoluteUri(context).PathAndQuery.EnsureStartsWith("/").EnsureStartsWith("~"), context, out var fi))
{
def = WriteFileToStream(sw, fi, type, path, context);
}
Expand Down

0 comments on commit ceeda59

Please sign in to comment.