Skip to content

Commit

Permalink
Allow ';' in PathNameValue; Make XML collection less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
airween authored and fzipi committed May 29, 2024
1 parent edf95cd commit 92d156c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/secrules_parsing/model/secrules.tx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ CollectionName:
'RULE' | 'SESSION' | 'TX')
;

SpecialCollection: 'XML' ':' XPathExpression;
SpecialCollection: 'XML' ':'? XPathExpression?;

XPathExpression: /(\/\*|\/\/@\*)/;

Expand Down Expand Up @@ -192,7 +192,7 @@ StringWithSpaces: /[A-Za-z0-9\-\/\ \._]+/;
PathOrMacro: PathNameValue | MacroVar;

// Filesystem Paths (could be merged with URI, tought)
PathNameValue: /[a-zA-Z0-9\-_\.\/]+/;
PathNameValue: /[a-zA-Z0-9\-_\.\/;]+/;

// Macros, e.g: %{tx.critical_anomaly_score}
Macro: INT | OperationMacro | ExtendedMacro | MacroVar;
Expand Down

0 comments on commit 92d156c

Please sign in to comment.