summaryrefslogtreecommitdiff
path: root/Documentation/technical/api-quote.txt
diff options
context:
space:
mode:
authorLibravatar Jakub Narebski <jnareb@gmail.com>2010-02-07 21:51:18 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-02-17 11:18:09 -0800
commit453541fcfcbc54aa3b0035667e5d5885d407d0a5 (patch)
tree5233260f999c7a0f5f5f73c02339243bf24b9158 /Documentation/technical/api-quote.txt
parentMerge branch 'jc/typo' (diff)
downloadtgif-453541fcfcbc54aa3b0035667e5d5885d407d0a5.tar.xz
gitweb: esc_html (short) error message in die_error
The error message (second argument to die_error) is meant to be short, one-line text description of given error. A few callers call die_error with error message containing unescaped user supplied data ($hash, $file_name). Instead of forcing callers to escape data, simply call esc_html on the parameter. Note that optional third parameter, which contains detailed error description, is meant to be HTML formatted, and therefore should be not escaped. While at it update esc_html synopsis/usage, and bring default error description to read 'Internal Server Error' (titlecased). Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/api-quote.txt')
0 files changed, 0 insertions, 0 deletions