Fix computation of file:// urls from paths

--HG--
branch : WINDOWSPORT
This commit is contained in:
Jean-Francois Dockes
2015-09-02 09:11:25 +02:00
parent a66209dc6e
commit 8022515a00
8 changed files with 29 additions and 4 deletions
+1 -1
View File
@@ -1212,7 +1212,7 @@ void RclConfig::urlrewrite(const string& dbdir, string& url) const
// This call always succeeds because the key comes from getNames()
if (m_ptrans->get(*it, npath, dbdir)) {
path = path.replace(0, it->size(), npath);
url = "file://" + path;
url = path_pathtofileurl(path);
}
break;
}