summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-07-15 19:04:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-07-15 19:04:32 (GMT)
commitc255a70b5ef4e70070b6076c4308da9d163d56a9 (patch)
tree67126e0dd61c9aad5c48bfd5253e13230b9502d2 /gitweb
parentfc051572a3fe171286f10761bd33946c48de3f7f (diff)
parent0ad0a61f05fe521a63ade9bfafd2f589fba0df33 (diff)
downloadgit-c255a70b5ef4e70070b6076c4308da9d163d56a9.zip
git-c255a70b5ef4e70070b6076c4308da9d163d56a9.tar.gz
git-c255a70b5ef4e70070b6076c4308da9d163d56a9.tar.bz2
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-xgitweb/gitweb.perl3
1 files changed, 1 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 1f611d2..cedc357 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;
}