Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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...
commit d5d40aa60675560d359f5d7f665c764a865c1cd1 1 parent 36861d7
wsoltys wsoltys authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  xbmc/utils/URIUtils.cpp
3  xbmc/utils/URIUtils.cpp
View
@@ -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()));
Please sign in to comment.
Something went wrong with that request. Please try again.