HTTP paths should also be fixed to end with /

This commit is contained in:
craig.p.drummond@gmail.com
2012-08-23 11:05:24 +00:00
parent 73f3815338
commit 647530b94f

View File

@@ -50,12 +50,9 @@
QString MPDParseUtils::fixPath(const QString &f)
{
if (f.startsWith(QLatin1String("http://"))) {
return f;
}
QString d(f);
if (!d.isEmpty()) {
if (!d.isEmpty() && !d.startsWith(QLatin1String("http://"))) {
d.replace(QLatin1String("//"), QChar('/'));
}
if (!d.isEmpty() && !d.endsWith('/')) {