Permalink
Browse files

bluray: make sure root has no trailing slash

fixes Ticket #14579
  • Loading branch information...
1 parent e168f22 commit 46889f25cc2d3aa3cce3163f0ed63e4db98bbcb1 @elupus elupus committed Sep 8, 2013
@@ -288,6 +288,9 @@ bool CDVDInputStreamBluray::Open(const char* strFile, const std::string& content
filename = URIUtils::GetFileName(strFile);
}
+ // root should not have trailing slash
+ URIUtils::RemoveSlashAtEnd(root);
+
if (!m_dll)
return false;
@@ -146,6 +146,7 @@ bool CBlurayDirectory::GetDirectory(const CStdString& path, CFileItemList &items
CStdString root = m_url.GetHostName();
CStdString file = m_url.GetFileName();
URIUtils::RemoveSlashAtEnd(file);
+ URIUtils::RemoveSlashAtEnd(root);
m_dll = new DllLibbluray();
if (!m_dll->Load())

0 comments on commit 46889f2

Please sign in to comment.