]> Lady’s Gitweb - Gitweb/commit
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)
commit2d23087538058461130c845b6268b1a3f3107da44464a8d95c3852a6e6d8f503
treeabc79c0601542c40021fa4671d29553a8f6d4a4308ff07d0e7074498d60c2c85
parent71c596262ba5ab1eb6a961e48359b48ee9fdacd23f7bc5ea4cf00cb1165b19a5
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.206614 seconds and 4 git commands to generate.