Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] gitweb: Strip non-printable characters from syntax highlighter output

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:03

Jakub Narebski [off-list ref] writes:
So actually now I see that while this line is good to have in esc_html(),
it is not really necessary in sanitize().

But anyway we don't want to replace undef with an empty string; undef is
(usually) an error, and we want to catch it, not to hide it.
Heh, get off your high horse---whoever wrote such a caller that calls the
subroutine and uses its result without checking it against undef is not
qualified to make such a statement. I do not think letting "perl -w"
notice and complain about an attempt to concatenate undef with string
counts as "catching" it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help