Skip to content

Commit

Permalink
Fix validation of log actions with $macros in SPRE
Browse files Browse the repository at this point in the history
Macro expansion allowed in log action specifications.
  • Loading branch information
sonertari committed Nov 16, 2021
1 parent 86c3f1c commit d62d1d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "UTM Firewall"
PROJECT_NUMBER = 7.0
PROJECT_NUMBER = 7.0.1
PROJECT_BRIEF =
PROJECT_LOGO =
OUTPUT_DIRECTORY = ./src/View/docs
Expand Down
2 changes: 1 addition & 1 deletion src/Model/validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
define('SPRE_IP', "^(${RE_IP}[*]{0,1}|$RE_MACRO_VAR|$SPRE_ALLNONE)$");
define('SPRE_PORT', "^(\d{1,5}[*]{0,1}|$RE_MACRO_VAR|$SPRE_ALLNONE)$");
define('SPRE_HOST', "^([\w.\/_*]{1,100}|${RE_IP}[*]{0,1}|$RE_MACRO_VAR|$SPRE_ALLNONE)$");
define('SPRE_LOG', "^([!]{0,1}(connect|master|cert|content|pcap|mirror)|$SPRE_ALLNONE)$");
define('SPRE_LOG', "^([!]{0,1}(connect|master|cert|content|pcap|mirror)|$RE_MACRO_VAR|$SPRE_ALLNONE)$");
define('SPRE_PROTO', "^(tcp|ssl|http|https|pop3|pop3s|smtp|smtps|autossl)$");
define('SPRE_NATENGINE', "^(pf|ipfw|netfilter|tproxy)$");
?>

0 comments on commit d62d1d1

Please sign in to comment.