From 215867863f60bac28e29d2a804f961d7101a8a66 Mon Sep 17 00:00:00 2001 From: "Eduardo Lima (Etrunko)" Date: Thu, 4 Jan 2018 12:27:02 -0200 Subject: [PATCH] dnd: Check for spaces after '%' character In this case the directory name should not be escaped. I recently bumped into this issue with the '100% Clubland 90s' album. Signed-off-by: Eduardo Lima (Etrunko) --- src/bin/dnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/dnd.c b/src/bin/dnd.c index fb39410..01daa5c 100644 --- a/src/bin/dnd.c +++ b/src/bin/dnd.c @@ -70,7 +70,7 @@ _escape_parse(const char *str) for (d = dest, s = str; *s; d++) { - if (s[0] == '%') + if (s[0] == '%' && !isspace(s[1])) { if (s[1] && s[2]) {