mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
fix: log > ban ip address, not working with AM/PM time locale
This commit is contained in:
parent
df5fa09ba9
commit
8be3ff6331
2
main.pas
2
main.pas
@ -11258,7 +11258,7 @@ if pt.x < 0 then
|
|||||||
if pt.y >= logbox.lines.count then
|
if pt.y >= logbox.lines.count then
|
||||||
exit;
|
exit;
|
||||||
s:=logbox.lines[pt.y];
|
s:=logbox.lines[pt.y];
|
||||||
s:=reGet(s, '^\S+ +(\S+@)?(\S+):\d+ ', 2);
|
s:=reGet(s, '.+ (\S+@)?(\S+):\d+ ', 2);
|
||||||
if checkAddressSyntax(s,FALSE) then
|
if checkAddressSyntax(s,FALSE) then
|
||||||
result:=s;
|
result:=s;
|
||||||
end; // ipPointedInLog
|
end; // ipPointedInLog
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user