aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_regexp.c')
-rw-r--r--src/lua/lua_regexp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c
index 584f7d8c1..4e233448b 100644
--- a/src/lua/lua_regexp.c
+++ b/src/lua/lua_regexp.c
@@ -191,7 +191,8 @@ lua_regexp_import_glob (lua_State *L)
}
if (string) {
- escaped = rspamd_str_regexp_escape (string, pat_len, NULL, TRUE);
+ escaped = rspamd_str_regexp_escape (string, pat_len, NULL,
+ RSPAMD_REGEXP_ESCAPE_GLOB|RSPAMD_REGEXP_ESCAPE_UTF);
re = rspamd_regexp_new (escaped, flags_str, &err);
@@ -249,7 +250,8 @@ lua_regexp_import_plain (lua_State *L)
}
if (string) {
- escaped = rspamd_str_regexp_escape (string, pat_len, NULL, FALSE);
+ escaped = rspamd_str_regexp_escape (string, pat_len, NULL,
+ RSPAMD_REGEXP_ESCAPE_ASCII);
re = rspamd_regexp_new (escaped, flags_str, &err);