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()));