diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-10 21:26:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-10 21:26:31 +0000 |
commit | 9043e4cc1152948e78ab6cb1a4d26a20ddcbcb80 (patch) | |
tree | 5dcc37983a4744b81605832ac9e024b1f6a4edb7 | |
parent | 7bdb1bc2e7224dd3db600ecf74e1f86525e46e63 (diff) | |
download | pfsense-9043e4cc1152948e78ab6cb1a4d26a20ddcbcb80.zip pfsense-9043e4cc1152948e78ab6cb1a4d26a20ddcbcb80.tar.gz |
hostnames could have - in them, etc. loosen regex
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index ab72835..5ddbc9b 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -69,7 +69,7 @@ function conv_clog($logfile, $tail) { foreach ($logarr as $logent) { - preg_match("/(.*)\s(\w+)\spf:.*rule.*\(match\):\s(\w+)\sin\son\s(\w+:)\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,7})\s([\<|\>])\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,7}):.*/",$logent,$log_split); + preg_match("/(.*)\s(.*)\spf:.*rule.*\(match\):\s(\w+)\sin\son\s(\w+:)\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,7})\s([\<|\>])\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,7}):.*/",$logent,$log_split); $flent['proto'] = "TCP"; if(stristr($logent, "UDP") == true) |