Появляется пустая строка 'br' перед кат после публикации
Единственное место где я нашёл упоминание cut это:
engine\modules\text\Text.class.php
В чём может быть причина?
engine\modules\text\Text.class.php
public function Cut($sText) { $sTextShort = $sText; $sTextNew = $sText; $sTextCut = null; $sTextTemp=str_replace("\r\n",' ',$sText); $sTextTemp=str_replace("\n",' ',$sTextTemp); if (preg_match("/^(.*) <a name="cut"></a> (.*)$/Ui",$sTextTemp,$aMatch)) { $aMatch[1]=str_replace(' ',"\r\n",$aMatch[1]); $aMatch[1]=str_replace(' ',"\r\n",$aMatch[1]); $aMatch[3]=str_replace(' ',"\r\n",$aMatch[3]); $aMatch[3]=str_replace(' ',"\r\n",$aMatch[3]); $sTextShort=$aMatch[1]; $sTextNew=$aMatch[1].' <a name="cut"></a> '.$aMatch[3]; if (preg_match('/^\s*name\s*=\s*"(.+)"\s*\/?$/Ui',$aMatch[2],$aMatchCut)) { $sTextCut=trim($aMatchCut[1]); } } return array($sTextShort,$sTextNew,$sTextCut ? htmlspecialchars($sTextCut) : null); }
В чём может быть причина?
1 комментарий
и
т.к. вы ко мне обращались, то я вам до-сообщу — проверьте на чистой ЛС, т.к. как минимум атрибут style не разрешен.