diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-06 20:33:31 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-06 20:33:31 +0400 |
commit | 6af303bd3ab37702ad4a6d50b74e95d2a2808e85 (patch) | |
tree | 044acffcfe2dd8527f914cdeb3949d5e93e70cee /src/cfg_utils.c | |
parent | 1d63fed447d8b74d81468a57af9773773f654210 (diff) | |
download | rspamd-6af303bd3ab37702ad4a6d50b74e95d2a2808e85.tar.gz rspamd-6af303bd3ab37702ad4a6d50b74e95d2a2808e85.zip |
Add /maps and /getmap commands to webui.
Identify maps by id.
Initialize secure random numbers using openssl.
Add description to maps.
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index 7b1910324..a0191b103 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -494,11 +494,17 @@ parse_flag (const gchar *str) if (g_ascii_strncasecmp (str, "no", len) == 0) { return 0; } + else if (g_ascii_strncasecmp (str, "on", len) == 0) { + return 1; + } break; case 3: if (g_ascii_strncasecmp (str, "yes", len) == 0) { return 1; } + else if (g_ascii_strncasecmp (str, "off", len) == 0) { + return 0; + } break; case 4: if (g_ascii_strncasecmp (str, "true", len) == 0) { |