Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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