diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 18133fa..51f1d23 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -564 \ No newline at end of file +566 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index f491e22..a540f59 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -299 \ No newline at end of file +301 \ No newline at end of file diff --git a/IISMainHandler/MainHandler.cs b/IISMainHandler/MainHandler.cs index 6d00219..78c1068 100644 --- a/IISMainHandler/MainHandler.cs +++ b/IISMainHandler/MainHandler.cs @@ -16,7 +16,7 @@ namespace FLocal.IISHandler { Uri referer = httpcontext.Request.UrlReferrer; if(referer != null && referer.PathAndQuery.StartsWith("/static")) { - throw new HttpException(403, "You have come from the static page"); + throw new HttpException(403, "You have come from the static page '" + referer + "'"); } if(!FLocal.Common.Config.isInitialized) { diff --git a/IISMainHandler/handlers/WrongUrlHandler.cs b/IISMainHandler/handlers/WrongUrlHandler.cs index 85aacc4..29103e5 100644 --- a/IISMainHandler/handlers/WrongUrlHandler.cs +++ b/IISMainHandler/handlers/WrongUrlHandler.cs @@ -8,7 +8,7 @@ namespace FLocal.IISHandler.handlers { class WrongUrlHandler : ISpecificHandler { public void Handle(WebContext context) { - throw new HttpException(400, "wrong url"); + throw new HttpException(400, "wrong url '" + context.httprequest.RawUrl + "'"); } }