From ad33cbf263180d5713bce22d7fd102a5009549b4 Mon Sep 17 00:00:00 2001 From: Massimo Melina Date: Thu, 28 May 2020 12:43:34 +0200 Subject: [PATCH] fix: account redirection not working if loggin in from a forbidden folder --- main.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.pas b/main.pas index b501b89..f180383 100644 --- a/main.pas +++ b/main.pas @@ -5098,7 +5098,10 @@ var result:=TRUE; specialGrant:=TRUE; end; - if result then exit; + if result then + exit; + if f.isFolder() and sessionRedirect() then // forbidden folder, but we were asked to go elsewhere + exit; conn.reply.realm:=f.getShownRealm(); runEventScript('unauthorized'); getPage('login', data, f);