Exclamation marks in the description field of a floating rule result in a filter reload error.
Some characters such as "/!\" in a floating rule description produce an error when the filter is reloaded.Steps to reproduce :
- Create a floating rule with the following description: /!\ TEMP /!\
- Click "Apply Changes"
- Open the notices to view the error
There were error(s) loading the rules: /tmp/rules.debug:128: syntax error - The line in question reads : pass in quick on [...]
Updated by Viktor Gurov over 3 years ago
seems related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=182819
Updated by Jim Pingle over 3 years ago
That makes sense, many parsers treat
\ at the end of a line as an instruction to join it with the following line.
The safest course of action is probably to deny it as we have done, as that also means it could possibly be used to make escape characters inside the description.