fixed: AddSlashAtEnd for url style uri's with only a host
authorspiff <spiff@xbmc.org>
Thu, 18 Aug 2011 09:14:53 +0000 (11:14 +0200)
committerspiff <spiff@xbmc.org>
Thu, 18 Aug 2011 09:15:41 +0000 (11:15 +0200)
xbmc/utils/URIUtils.cpp

index f812ddf..1a68273 100644 (file)
@@ -759,6 +759,11 @@ void URIUtils::AddSlashAtEnd(CStdString& strFolder)
       url.SetFileName(file);
       strFolder = url.Get();
     }
+    else if (file.IsEmpty())
+    {
+      url.SetHostName(url.GetHostName()+"/");
+      strFolder = url.Get();
+    }
     return;
   }