Explorar o código

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

jmontoyaa %!s(int64=7) %!d(string=hai) anos
pai
achega
351d10c929
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);