From 57e46ac8f1de537e431d3ac69830edb39549241a Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 26 Jan 2014 16:01:17 +0000 Subject: [PATCH] spam.m4: Check that non-userv spam thresholds are well-formed. Both are untrustworthy sources. --- spam.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spam.m4 b/spam.m4 index e480880..57b0c27 100644 --- a/spam.m4 +++ b/spam.m4 @@ -50,7 +50,9 @@ fetch_spam_limit: @$domain/\ $sender_address} \ nwildlsearch {CONF_userconf_dir/spam-limit} \ - {spam_limit=$value} \ + {${if match{$value}{\N^[0-9]+$\N} \ + {spam_limit=$value} \ + {}}} \ {}}} \ {}} \ ${if exists {CONF_userconf_dir/spam-limit.userv} \ -- 2.11.0