Commit 1df4876
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 453541f commit 1df4876
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
| 1146 | + | |
1146 | 1147 | | |
1147 | 1148 | | |
1148 | 1149 | | |
| |||
1155 | 1156 | | |
1156 | 1157 | | |
1157 | 1158 | | |
| 1159 | + | |
1158 | 1160 | | |
1159 | 1161 | | |
1160 | 1162 | | |
| |||
1163 | 1165 | | |
1164 | 1166 | | |
1165 | 1167 | | |
| 1168 | + | |
1166 | 1169 | | |
1167 | 1170 | | |
1168 | 1171 | | |
| |||
1174 | 1177 | | |
1175 | 1178 | | |
1176 | 1179 | | |
| 1180 | + | |
| 1181 | + | |
1177 | 1182 | | |
1178 | 1183 | | |
1179 | 1184 | | |
| |||
1188 | 1193 | | |
1189 | 1194 | | |
1190 | 1195 | | |
| 1196 | + | |
| 1197 | + | |
1191 | 1198 | | |
1192 | 1199 | | |
1193 | 1200 | | |
| |||
3387 | 3394 | | |
3388 | 3395 | | |
3389 | 3396 | | |
3390 | | - | |
| 3397 | + | |
3391 | 3398 | | |
3392 | 3399 | | |
3393 | 3400 | | |
| |||
0 commit comments