fix: {.disconnect.} and {.disconnection reason.} not working in event 'pre-filter-request'

This commit is contained in:
Massimo Melina 2020-06-16 23:12:36 +02:00
parent cba235c7b0
commit 07f5f2ca6b

View File

@ -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