diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-24 15:23:41 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-24 15:23:41 +0400 |
commit | 521c2b24b92d2085629d0e34d18110b3a643a77a (patch) | |
tree | 44a264c37e7b0fd6e021cb4a99189f95fd274dd8 /src/statfile.c | |
parent | 0cc688fe0be5662e761639d853745153a13522f2 (diff) | |
download | rspamd-521c2b24b92d2085629d0e34d18110b3a643a77a.tar.gz rspamd-521c2b24b92d2085629d0e34d18110b3a643a77a.zip |
* Validate utf8 chars to avoid crashes
Diffstat (limited to 'src/statfile.c')
-rw-r--r-- | src/statfile.c | 3 |
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; } |