aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Lima (Etrunko) <eblima@gmail.com>2018-01-04 12:27:02 -0200
committerEduardo Lima (Etrunko) <eblima@gmail.com>2018-01-04 12:28:00 -0200
commit215867863f60bac28e29d2a804f961d7101a8a66 (patch)
tree38f285c3305eda869c5a2f855019ce031a0d1349
parentrage - let's do 0.3.0. (diff)
downloadrage-215867863f60bac28e29d2a804f961d7101a8a66.tar.gz
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) <eblima@gmail.com>
-rw-r--r--src/bin/dnd.c2
1 files changed, 1 insertions, 1 deletions
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])
{