]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: fix esc_param
authorGiuseppe Bilotta <redacted>
Tue, 13 Oct 2009 19:51:36 +0000 (21:51 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>

No differences found
This page took 0.197093 seconds and 4 git commands to generate.