Selaa lähdekoodia

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

jmontoyaa 7 vuotta sitten
vanhempi
commit
351d10c929
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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);