From f8719ba263f822851f2f8dc0e7d099b28996789c Mon Sep 17 00:00:00 2001 From: djcb Date: Thu, 18 Apr 2013 20:31:28 +0300 Subject: [PATCH] * mu: treat as \ as special, too --- lib/mu-str.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mu-str.c b/lib/mu-str.c index 343f41de..9f5d675a 100644 --- a/lib/mu-str.c +++ b/lib/mu-str.c @@ -468,6 +468,7 @@ is_xapian_special_char (char c) case '(': case ')': case '"': + case '\\': case '\'': case '*': return TRUE; @@ -533,6 +534,7 @@ mu_str_xapian_escape_in_place_try (char *term, gboolean esc_space, GStringChunk case '[': case ']': case '+': + case '\\': case '-': *cur = ESC_CHAR; break;