Browse Source

[UI] Corrected Sieve Preset 1 (Fixed Regex)

DerLinkman 1 year ago
parent
commit
58f63aad08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/web/inc/presets/sieve/sieve_1.yml

+ 1 - 1
data/web/inc/presets/sieve/sieve_1.yml

@@ -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.