From d05272f31b567946ddc5a13da4f52160c8e5b2f8 Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Thu, 27 Jul 2017 08:14:58 +0000 Subject: [PATCH] KIBE#41345 Export naar Excel beter ingelogd blijven? svn path=/Website/branches/v2017.1/; revision=34757 --- APPL/Shared/Common.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/APPL/Shared/Common.inc b/APPL/Shared/Common.inc index 10c368763b..511d2f07d1 100644 --- a/APPL/Shared/Common.inc +++ b/APPL/Shared/Common.inc @@ -282,6 +282,15 @@ if ((user_key < 0 || getQParamInt("jwtforce", 0) == 1) && typeof LOGIN_try == "u if (user_key < 0 && typeof ANONYMOUS_Allowed == "undefined") { + var method = String(Request.ServerVariables("REQUEST_METHOD")); + if (method == "HEAD" || method == "OPTIONS" || method == "PROPFIND") + { // Een HEAD zonder cookies is waarschijnlijk afkomstig van Excel + // met agent 'Microsoft+Office+Existence+Discovery' + // Door de '405' heeft hij hopelijk door dat we echt geen WEBDAV doen + Response.Status = "405 Method not allowed"; + Response.End; + } + if (JSON_Result) // Login scherm werkt toch niet { Response.Clear();