Skip to content

Commit

Permalink
[UI] Corrected Sieve Preset 1 (Fixed Regex)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerLinkman committed May 13, 2024
1 parent 8a8687a commit 58f63aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/web/inc/presets/sieve/sieve_1.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
headline: lang.sieve_preset_1
content: |
require ["reject","body","regex"];
if anyof (body :raw :regex ["filename=.*\.doc","filename=.*\.exe","filename=.*\.moo"]) {
if anyof (body :raw :regex ["filename=\".*\\.(doc|exe|moo)\""]) {
reject text:
doc, exe and moo are dangerous file extensions.
Why would you do that? I am a sad cow.
Expand Down

0 comments on commit 58f63aa

Please sign in to comment.