Merge branch 'jk/maint-gitweb-xss' into maint
[gitweb.git] / perl / Git / SVN / Utils.pm
index 4bb4dde89a3821ad7714c299b429f751cc98ebcc..8b8cf3755c268e03ef334534092bcd7959070cd2 100644 (file)
@@ -122,7 +122,6 @@ sub _canonicalize_path_ourselves {
        $path = _collapse_dotdot($path);
        $path =~ s#/$##g;
        $path =~ s#^\./## if $dot_slash_added;
-       $path =~ s#^/##;
        $path =~ s#^\.$##;
        return $path;
 }