aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-06-12 16:26:50 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-06-12 16:26:50 +0200
commit4ac581b13113bd7e13b438f52c3f28b18b95bfae (patch)
tree7e4b4abf5162bec620c1640d17c9660bf7ab3679
parent86793fb26296b59b4ba333e587b6a2ebc718e380 (diff)
downloadmblaze-4ac581b13113bd7e13b438f52c3f28b18b95bfae.tar.gz
blaze822: blaze822_addr: unquote quoted strings
-rw-r--r--blaze822.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/blaze822.c b/blaze822.c
index 1bceecf..73b516b 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -178,8 +178,11 @@ blaze822_addr(char *s, char **dispo, char **addro)
*c = 0;
} else if (*s == '"') {
s++;
- while (*s && c < e && *s != '"')
+ while (*s && c < e && *s != '"') {
+ if (*s == '\\' && *(s+1))
+ s++;
*c++ = *s++;
+ }
if (*s == '"')
s++;
} else if (*s == '(') {