Update draft release notes for 1.5.5
[gitweb.git] / git-svn.perl
index bba22c1321056f5daa58a6913ccc406850700b25..0c2b791eab3de64a8b642460b4b2b959936cca96 100755 (executable)
@@ -3665,7 +3665,7 @@ sub escape_uri_only {
        my ($uri) = @_;
        my @tmp;
        foreach (split m{/}, $uri) {
-               s/([^\w.-])/sprintf("%%%02X",ord($1))/eg;
+               s/([^\w.%-]|%(?![a-fA-F0-9]{2}))/sprintf("%%%02X",ord($1))/eg;
                push @tmp, $_;
        }
        join('/', @tmp);