浏览代码

Replace not valid tag </br> to <br /> when parsing message see BT#13556

jmontoyaa 7 年之前
父节点
当前提交
351d10c929
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      main/inc/lib/message.lib.php

+ 1 - 0
main/inc/lib/message.lib.php

@@ -1140,6 +1140,7 @@ class MessageManager
             $source
         );
 
+        $row['content'] = str_replace('</br>', '<br />', $row['content']);
         $title = Security::remove_XSS($row['title'], STUDENT, true);
         $content = Security::remove_XSS($row['content'], STUDENT, true);