]> Lady’s Gitweb - Gitweb/commit
gitweb: esc_html (short) error message in die_error
authorJakub Narebski <redacted>
Sun, 7 Feb 2010 20:51:18 +0000 (21:51 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commit70bddf0026aa92ed6ced47fb8ad0b3ba6a982dbb6e1142091b48e6b6ac0e872c
tree72dcd9b0d9a0ddc346df5ec873ecd15e7582e0daf87f5e686e923b867ccf8293
parentb8b18ce7a8f6bf9d18d9584cc5089a03a009334e7447f518d6ad1fc8cfe75463
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.2675 seconds and 4 git commands to generate.