diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-07-15 12:04:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-15 12:04:32 -0700 |
commit | c255a70b5ef4e70070b6076c4308da9d163d56a9 (patch) | |
tree | 67126e0dd61c9aad5c48bfd5253e13230b9502d2 /gitweb | |
parent | fc051572a3fe171286f10761bd33946c48de3f7f (diff) | |
parent | 0ad0a61f05fe521a63ade9bfafd2f589fba0df33 (diff) | |
download | git-c255a70b5ef4e70070b6076c4308da9d163d56a9.tar.gz |
Merge branch 'maint'
* maint:
Documentation: add submodule.* to the big configuration variable list
gitmodules.5: url can be a relative path
gitweb: fix esc_url
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 1f611d22d4..cedc357313 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1327,8 +1327,7 @@ sub esc_param { sub esc_url { my $str = shift; return undef unless defined $str; - $str =~ s/([^A-Za-z0-9\-_.~();\/;?:@&=])/sprintf("%%%02X", ord($1))/eg; - $str =~ s/\+/%2B/g; + $str =~ s/([^A-Za-z0-9\-_.~();\/;?:@&= ]+)/CGI::escape($1)/eg; $str =~ s/ /\+/g; return $str; } |