Commit a0fe6317 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

utils: Fix win32 mrl to local path conversion

parent 639b36ab
Pipeline #3667 passed with stages
in 11 minutes and 17 seconds
......@@ -196,7 +196,7 @@ std::string toLocalPath( const std::string& mrl )
// Note that the initial '/' (after the 2 forward slashes from the scheme)
// is not a backslash, as it is not a path separator, so do not use
// DIR_SEPARATOR_CHAR here.
if ( path[0] == '/' )
if ( path[0] == '/' && isalpha( path[1] ) )
path.erase( 0, 1 );
return utils::url::decode( path );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment