author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | |
Tue, 13 Oct 2009 19:51:36 +0000 (21:51 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 14 Oct 2009 08:14:45 +0000 (01:14 -0700) | ||
commit | 452e2256d2d7cb5494ca10fcbbb6bdf29570f2c0 | |
tree | 52608e3345969b95819461fb281fe382bf00f815 | tree | snapshot |
parent | 6ff9ae9f97101c30897332f608f35ad232b1faf2 | commit | diff |
gitweb: fix esc_param
The custom CGI escaping done in esc_param failed to escape UTF-8
properly. Fix by using CGI::escape on each sequence of matched
characters instead of sprintf()ing a custom escaping for each byte.
Additionally, the space -> + escape was being escaped due to greedy
matching on the first substitution. Fix by adding space to the
list of characters not handled on the first substitution.
Finally, remove an unnecessary escaping of the + sign.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The custom CGI escaping done in esc_param failed to escape UTF-8
properly. Fix by using CGI::escape on each sequence of matched
characters instead of sprintf()ing a custom escaping for each byte.
Additionally, the space -> + escape was being escaped due to greedy
matching on the first substitution. Fix by adding space to the
list of characters not handled on the first substitution.
Finally, remove an unnecessary escaping of the + sign.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history |