From: <ok...@us...> - 2003-01-07 22:19:00
|
Update of /cvsroot/xoops/xoops2/include In directory sc8-pr-cvs1:/tmp/cvs-serv4577/include Modified Files: comment_new.php Log Message: added comment reply title check Index: comment_new.php =================================================================== RCS file: /cvsroot/xoops/xoops2/include/comment_new.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** comment_new.php 7 Jan 2003 21:32:46 -0000 1.1 --- comment_new.php 7 Jan 2003 22:18:47 -0000 1.2 *************** *** 38,46 **** if ($com_itemid > 0) { include XOOPS_ROOT_PATH.'/header.php'; ! themecenterposts($com_replytitle, $com_replytext); ! $myts =& MyTextSanitizer::getInstance(); ! $com_title = $myts->htmlSpecialChars($com_replytitle); ! if (!preg_match("/^re:/i", $com_title)) { ! $com_title = "Re: ".substr($com_title, 0, 56); } if (isset($HTTP_GET_VARS['com_mode'])) { --- 38,52 ---- if ($com_itemid > 0) { include XOOPS_ROOT_PATH.'/header.php'; ! if (isset($com_replytitle)) { ! if (isset($com_replytext)) { ! themecenterposts($com_replytitle, $com_replytext); ! } ! $myts =& MyTextSanitizer::getInstance(); ! $com_title = $myts->htmlSpecialChars($com_replytitle); ! if (!preg_match("/^re:/i", $com_title)) { ! $com_title = "Re: ".substr($com_title, 0, 56); ! } ! } else { ! $com_title = ''; } if (isset($HTTP_GET_VARS['com_mode'])) { |