]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Protect escaping functions against calling on undef
authorJakub Narebski <redacted>
Sun, 7 Feb 2010 20:52:25 +0000 (21:52 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
This is a bit of future-proofing esc_html and friends: when called
with undefined value they would now would return undef... which would
probably mean that error would still occur, but closer to the source
of problem.

This means that we can safely use
  esc_html(shift) || "Internal Server Error"
in die_error() instead of
  esc_html(shift || "Internal Server Error")

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>

No differences found
This page took 0.250738 seconds and 4 git commands to generate.