urlrewrite: canonize the path after translation to make sure there are no // on windows

This commit is contained in:
Jean-Francois Dockes 2019-02-04 17:50:26 +01:00
parent 86020a6896
commit 16a8563d85

View File

@ -1481,7 +1481,7 @@ void RclConfig::urlrewrite(const string& dbdir, string& url) const
string npath; string npath;
// Key comes from getNames()=> call must succeed // Key comes from getNames()=> call must succeed
if (m_ptrans->get(opath, npath, dbdir)) { if (m_ptrans->get(opath, npath, dbdir)) {
path = path.replace(0, opath.size(), npath); path = path_canon(path.replace(0, opath.size(), npath));
computeurl = true; computeurl = true;
} }
break; break;