mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
format_comment() empty return
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user