KIBE#41345 Export naar Excel beter ingelogd blijven?

svn path=/Website/branches/v2017.1/; revision=34757
This commit is contained in:
Jos Groot Lipman
2017-07-27 08:14:58 +00:00
parent bbd391f035
commit d05272f31b

View File

@@ -282,6 +282,15 @@ if ((user_key < 0 || getQParamInt("jwtforce", 0) == 1) && typeof LOGIN_try == "u
if (user_key < 0 && typeof ANONYMOUS_Allowed == "undefined") 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 if (JSON_Result) // Login scherm werkt toch niet
{ {
Response.Clear(); Response.Clear();