aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-18 20:03:36 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-18 20:03:36 +0300
commit9c455404d443c748b6398076c1746a12a7458bfc (patch)
tree1f6174f446b4257291ef723b4f43ad9f06b7931d /src/cfg_file.h
parent8cc22288806b9ff7115cb8f30349029714e2d89a (diff)
downloadrspamd-9c455404d443c748b6398076c1746a12a7458bfc.tar.gz
rspamd-9c455404d443c748b6398076c1746a12a7458bfc.zip
* Allow escaped quotes in quoted strings, for example "\"some string\""
* Add warnings when we got errors while parsing rexeps
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r--src/cfg_file.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h
index cc31f7a0c..646f228e0 100644
--- a/src/cfg_file.h
+++ b/src/cfg_file.h
@@ -312,6 +312,12 @@ struct rspamd_regexp* parse_regexp (memory_pool_t *pool, char *line);
*/
struct expression* parse_expression (memory_pool_t *pool, char *line);
+/**
+ * Replace all \" with a single " in given string
+ * @param line input string
+ */
+void unescape_quotes (char *line);
+
int yylex (void);
int yyparse (void);
void yyrestart (FILE *);