Skip to content
This repository
Browse code

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 authored December 08, 2012

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  xbmc/utils/URIUtils.cpp
3  xbmc/utils/URIUtils.cpp
@@ -368,11 +368,10 @@ bool URIUtils::GetParentPath(const CStdString& strPath, CStdString& strParent)
368 368
 
369 369
 CStdString URIUtils::SubstitutePath(const CStdString& strPath)
370 370
 {
371  
-  CStdString strPathTrans = CSpecialProtocol::TranslatePath(strPath);
372 371
   for (CAdvancedSettings::StringMapping::iterator i = g_advancedSettings.m_pathSubstitutions.begin();
373 372
       i != g_advancedSettings.m_pathSubstitutions.end(); i++)
374 373
   {
375  
-    if(CompareWithoutSlashAtEnd(strPathTrans, i->first))
  374
+    if (strncmp(strPath.c_str(), i->first.c_str(), i->first.size()) == 0)
376 375
     {
377 376
       if (strPath.size() > i->first.size())
378 377
         return URIUtils::AddFileToFolder(i->second, strPath.Mid(i->first.size()));

0 notes on commit d5d40aa

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