diff options
author | Jakub Narębski <jnareb@gmail.com> | 2014-05-27 16:22:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-05-27 15:11:49 -0700 |
commit | d49c08256b41e27879454a1f872bcfb80877acad (patch) | |
tree | 0b033ddcdd794dc3a8b3d6dbb58e1ce019234a93 /Documentation/fetch-options.txt | |
parent | eea591373e139fc8aab89a78ccb0b1512a2bf0de (diff) | |
download | git-jn/gitweb-utf8-in-links.tar.gz |
gitweb: Harden UTF-8 handling in generated linksjn/gitweb-utf8-in-links
esc_html() ensures that its input is properly UTF-8 encoded and marked
as UTF-8 with to_utf8(). Make esc_param() (used for query parameters
in generated URLs), esc_path_info() (for escaping path_info
components) and esc_url() use it too.
This hardens gitweb against errors in UTF-8 handling; because
to_utf8() is idempotent it won't change correct output.
Reported-by: Michael Wagner <accounts@mwagner.org>
Signed-off-by: Jakub Narębski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/fetch-options.txt')
0 files changed, 0 insertions, 0 deletions