aboutsummaryrefslogtreecommitdiffstats
path: root/src/statfile.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-24 15:23:41 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-24 15:23:41 +0400
commit521c2b24b92d2085629d0e34d18110b3a643a77a (patch)
tree44a264c37e7b0fd6e021cb4a99189f95fd274dd8 /src/statfile.c
parent0cc688fe0be5662e761639d853745153a13522f2 (diff)
downloadrspamd-521c2b24b92d2085629d0e34d18110b3a643a77a.tar.gz
rspamd-521c2b24b92d2085629d0e34d18110b3a643a77a.zip
* Validate utf8 chars to avoid crashes
Diffstat (limited to 'src/statfile.c')
-rw-r--r--src/statfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/statfile.c b/src/statfile.c
index 8537a054e..e41c1af15 100644
--- a/src/statfile.c
+++ b/src/statfile.c
@@ -533,6 +533,9 @@ statfile_get_section_by_name (const char *name)
else if (g_ascii_strcasecmp (name, "url") == 0) {
return STATFILE_SECTION_URLS;
}
+ else if (g_ascii_strcasecmp (name, "regexp") == 0) {
+ return STATFILE_SECTION_REGEXP;
+ }
return 0;
}