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>
This commit is contained in:
Eduardo Lima (Etrunko) 2018-01-04 12:27:02 -02:00
parent b7be3a0ae4
commit 215867863f
1 changed files with 1 additions and 1 deletions

View File

@ -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])
{