WrongUrl logging improved

main
Inga 🏳‍🌈 14 years ago
parent bd1d9a4b5a
commit 61a0b0cce9
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      IISMainHandler/handlers/WrongUrlHandler.cs

@ -16,7 +16,7 @@ namespace FLocal.IISHandler.handlers {
}
protected override IEnumerable<XElement> getSpecificData(WebContext context) {
if(!context.httprequest.Path.StartsWith("/static/")) context.LogError(new WrongUrlException());
if(!context.httprequest.Path.StartsWith("/static/") && !context.httprequest.Path.StartsWith("/favicon")) context.LogError(new WrongUrlException());
return new XElement[] {
new XElement("path", context.httprequest.Path)
};

Loading…
Cancel
Save