Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #207 from thecodejunkie/razoresacping
Browse files Browse the repository at this point in the history
Changed so that the Razor view engine uses the escaped code base of assem
  • Loading branch information
grumpydev committed Jul 24, 2011
2 parents 5c66ac4 + f947935 commit e0da896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nancy.ViewEngines.Razor/RazorViewEngine.cs
Expand Up @@ -157,7 +157,7 @@ private Func<NancyRazorViewBase> GenerateRazorViewFactory(CodeDomProvider codePr
}

private static string GetAssemblyPath(Assembly assembly) {
return new Uri(assembly.CodeBase).LocalPath;
return new Uri(assembly.EscapedCodeBase).LocalPath;
}

private NancyRazorViewBase GetOrCompileView(ViewLocationResult viewLocationResult, IRenderContext renderContext, Assembly referencingAssembly)
Expand Down

0 comments on commit e0da896

Please sign in to comment.