Pārlūkot izejas kodu

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

jmontoyaa 7 gadi atpakaļ
vecāks
revīzija
351d10c929
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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);