$arResult['TEXT'] = $_POST['COMMENT']; $_SESSION['ISERROR_TOCACHE'] = true; } // check site charset $cs = SITE_CHARSET; $_POST['COMMENT'] = (!$cs) ? htmlspecialchars($_POST['COMMENT']) : htmlspecialchars($_POST['COMMENT'], ENT_NOQUOTES, $cs); $no_follow = ($arResult['NO_FOLLOW'] == 'Y') ? 'rel="nofollow"' : ''; if(COption::GetOptionString($MODULE_ID, 'bb_code_enable')) { $_POST['COMMENT'] = CTreelikeComments::ParseText($_POST['COMMENT'], array( "NO_FOLLOW" => $no_follow, "SHOW_FILEMAN" => $arResult['SHOW_FILEMAN']) ); } else { if($arResult['NO_FOLLOW'] == 'Y') $_POST['COMMENT'] = preg_replace("#(https?|ftp)://\S+[^\s.,>)\];'\"!?]#",'<a href="\\0" rel="nofollow">\\0</a>', $_POST['COMMENT']); else $_POST['COMMENT'] = preg_replace("#(https?|ftp)://\S+[^\s.,>)\];'\"!?]#",'<a href="\\0">\\0</a>', $_POST['COMMENT']); } if($arResult['CAN_COMMENT'] == 'Y') { if(isset($_POST["ROBOT"]))