mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix trim htmlspecialchars null param
This commit is contained in:
@@ -320,7 +320,7 @@ function format_comment($text, $strip_html = true, $xssclean = false, $newtab =
|
|||||||
$imageresizer = $imageresizer ? 1 : 0;
|
$imageresizer = $imageresizer ? 1 : 0;
|
||||||
$s = $text;
|
$s = $text;
|
||||||
|
|
||||||
if ($strip_html) {
|
if ($strip_html && !is_null($s)) {
|
||||||
$s = htmlspecialchars($s);
|
$s = htmlspecialchars($s);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2537,7 +2537,7 @@ if ($CURUSER){
|
|||||||
foreach ($icons as $icon) {
|
foreach ($icons as $icon) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<link rel="stylesheet" href="<?php echo htmlspecialchars(trim($icon['cssfile'], '/')).$cssupdatedate?>" type="text/css" />
|
<link rel="stylesheet" href="<?php echo htmlspecialchars(trim($icon['cssfile'] ?? '', '/')).$cssupdatedate?>" type="text/css" />
|
||||||
<?php
|
<?php
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user