mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
fix: {.disconnect.} and {.disconnection reason.} not working in event 'pre-filter-request'
This commit is contained in:
parent
cba235c7b0
commit
07f5f2ca6b
9
main.pas
9
main.pas
@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
Copyright (C) 2002-2020 Massimo Melina (www.rejetto.com)
|
||||
|
||||
This file is part of HFS ~ HTTP File Server.
|
||||
@ -5410,6 +5410,13 @@ var
|
||||
end;
|
||||
|
||||
runEventScript('pre-filter-request');
|
||||
if conn.disconnectedByServer then
|
||||
exit;
|
||||
if data.disconnectReason > '' then
|
||||
begin
|
||||
getPage('deny', data);
|
||||
exit;
|
||||
end;
|
||||
|
||||
if (length(conn.request.user) > 100) or anycharIn('/\:?*<>|', conn.request.user) then
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user