]> Lady’s Gitweb - Gitweb/commit
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)
commit945fd4d5c7d2d88a5355e32aac145fa9c108595ca7ba2e90871dd0d8da7c1cc4
tree1f9ad9aa7d9a019a268d629ee43ddf63d68292e052761e0d0c508f5d61540ac2
parent70bddf0026aa92ed6ced47fb8ad0b3ba6a982dbb6e1142091b48e6b6ac0e872c
gitweb: Protect escaping functions against calling on undef

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>
gitweb.perl
This page took 0.236225 seconds and 4 git commands to generate.