Skip to content

Commit

Permalink
fix: account redirection not working if loggin in from a forbidden fo…
Browse files Browse the repository at this point in the history
…lder
  • Loading branch information
rejetto committed May 28, 2020
1 parent c4ca0d2 commit ad33cbf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5098,7 +5098,10 @@ procedure Tmainfrm.httpEvent(event:ThttpEvent; conn:ThttpConn);
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);
Expand Down

0 comments on commit ad33cbf

Please sign in to comment.