From d5d40aa60675560d359f5d7f665c764a865c1cd1 Mon Sep 17 00:00:00 2001 From: WiSo Date: Sat, 8 Dec 2012 13:27:34 +0100 Subject: [PATCH] Revert "fixed: path substitution didn't work properly for special paths. The key in m_pathSubstitutions was translated but the compared strPath not." This reverts commit 7a5f64c3266a0aa21429df70f122f6f05c0134b2. --- xbmc/utils/URIUtils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xbmc/utils/URIUtils.cpp b/xbmc/utils/URIUtils.cpp index 58fdde718acdf..bafa28920975c 100644 --- a/xbmc/utils/URIUtils.cpp +++ b/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()));