Skip to content

don't escape forward slashes in HTTP artwork URL

Damyan Ivanov requested to merge real-dam/malp:http-artwork-plain-slash into master

Previously, requests containing slashes would be encoded like this:

/path%2Fartist%20name%2Falbum%20name%2Fcover.jpg
     ^^^             ^^^            ^^^

The default apache config returns 404 for these, because of the %2F escapes and although it is possible to work around it with AllowEscapedSlashes On configuration directive, it would be nice if everything worked out of the box

Apache docs: https://httpd.apache.org/docs/2.4/mod/core.html#allowencodedslashes

This change uses the two-argument form of encode(), instructing it not to escape forward slashes

Merge request reports