Skip to content

Commit

Permalink
format_comment() empty return
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Jan 20, 2025
1 parent 7ef816f commit efebecf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,16 @@ function format_comment($text, $strip_html = true, $xssclean = false, $newtab =
global $lang_functions;
global $CURUSER, $SITENAME, $BASEURL;
global $tempCode, $tempCodeCount;
if ($text == '') {
return "";
}
$enableattach_attachment = get_setting('attachment.enableattach');
$tempCode = array();
$tempCodeCount = 0;
$imageresizer = $imageresizer ? 1 : 0;
$s = $text;

if ($strip_html && !is_null($s)) {
if ($strip_html) {
$s = htmlspecialchars($s);
}

Expand Down

0 comments on commit efebecf

Please sign in to comment.