Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Revert "fixed: path substitution didn't work properly for special pat…

…hs. The key in m_pathSubstitutions was translated but the compared strPath not."

This reverts commit 7a5f64c.
  • Loading branch information...
1 parent 36861d7 commit d5d40aa60675560d359f5d7f665c764a865c1cd1 @wsoltys wsoltys committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  xbmc/utils/URIUtils.cpp
3  xbmc/utils/URIUtils.cpp
@@ -368,11 +368,10 @@ bool URIUtils::GetParentPath(const CStdString& strPath, CStdString& strParent)
CStdString URIUtils::SubstitutePath(const CStdString& strPath)
- CStdString strPathTrans = CSpecialProtocol::TranslatePath(strPath);
for (CAdvancedSettings::StringMapping::iterator i = g_advancedSettings.m_pathSubstitutions.begin();
i != g_advancedSettings.m_pathSubstitutions.end(); i++)
- if(CompareWithoutSlashAtEnd(strPathTrans, i->first))
+ if (strncmp(strPath.c_str(), i->first.c_str(), i->first.size()) == 0)
if (strPath.size() > i->first.size())
return URIUtils::AddFileToFolder(i->second, strPath.Mid(i->first.size()));

0 comments on commit d5d40aa

Please sign in to comment.
Something went wrong with that request. Please try again.