mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +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 $lang_functions;
|
||||||
global $CURUSER, $SITENAME, $BASEURL;
|
global $CURUSER, $SITENAME, $BASEURL;
|
||||||
global $tempCode, $tempCodeCount;
|
global $tempCode, $tempCodeCount;
|
||||||
|
if ($text == '') {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
$enableattach_attachment = get_setting('attachment.enableattach');
|
$enableattach_attachment = get_setting('attachment.enableattach');
|
||||||
$tempCode = array();
|
$tempCode = array();
|
||||||
$tempCodeCount = 0;
|
$tempCodeCount = 0;
|
||||||
$imageresizer = $imageresizer ? 1 : 0;
|
$imageresizer = $imageresizer ? 1 : 0;
|
||||||
$s = $text;
|
$s = $text;
|
||||||
|
|
||||||
if ($strip_html && !is_null($s)) {
|
if ($strip_html) {
|
||||||
$s = htmlspecialchars($s);
|
$s = htmlspecialchars($s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user