diff options
author | Jakub Narebski <jnareb@gmail.com> | 2010-02-07 21:51:18 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-17 11:18:09 -0800 |
commit | 453541fcfcbc54aa3b0035667e5d5885d407d0a5 (patch) | |
tree | 5233260f999c7a0f5f5f73c02339243bf24b9158 /Documentation/technical/api-lockfile.txt | |
parent | Merge branch 'jc/typo' (diff) | |
download | tgif-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-lockfile.txt')
0 files changed, 0 insertions, 0 deletions