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>
v-0.4.0
Eduardo Lima (Etrunko) 5 years ago
parent b7be3a0ae4
commit 215867863f
  1. 2
      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])
{

Loading…
Cancel
Save