diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 51f1d23..bc6a950 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -566 \ No newline at end of file +569 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index a540f59..55663e5 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -301 \ No newline at end of file +304 \ No newline at end of file diff --git a/IISMainHandler/MainHandler.cs b/IISMainHandler/MainHandler.cs index 78c1068..dcd8e00 100644 --- a/IISMainHandler/MainHandler.cs +++ b/IISMainHandler/MainHandler.cs @@ -15,7 +15,7 @@ namespace FLocal.IISHandler { private void doProcessRequest(HttpContext httpcontext) { Uri referer = httpcontext.Request.UrlReferrer; - if(referer != null && referer.PathAndQuery.StartsWith("/static")) { + if(referer != null && referer.PathAndQuery.StartsWith("/static") && !httpcontext.Request.Path.StartsWith("/static") { throw new HttpException(403, "You have come from the static page '" + referer + "'"); }