We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4436b7 + 5e901b1 commit 2feb5d9Copy full SHA for 2feb5d9
DashboardPanel.class.php
@@ -401,17 +401,21 @@ protected function renderAttributes($attributes = [])
401
if (!is_array($attributes)) {
402
return $attributes;
403
}
404
+
405
if (empty($attributes)) {
406
return '';
407
408
409
$attributePairs = [];
410
foreach ($attributes as $key => $val) {
411
+ if ($val === false || $val === null) {
412
+ continue;
413
+ }
414
if (is_int($key)) {
415
$attributePairs[] = $val;
416
continue;
417
- $val = htmlspecialchars($val, ENT_QUOTES);
418
+ $val = htmlspecialchars((string) $val, ENT_QUOTES);
419
$attributePairs[] = "{$key}=\"{$val}\"";
420
421
0 commit comments