]> git.mjollnir.org Git - moodle.git/commitdiff
mod/wiki: HTML fix
authormattc-catalyst <mattc-catalyst>
Mon, 16 Apr 2007 23:21:59 +0000 (23:21 +0000)
committermattc-catalyst <mattc-catalyst>
Mon, 16 Apr 2007 23:21:59 +0000 (23:21 +0000)
<![CDATA tags were being lowercased preventing Firefox from displayign the
page in standards compliance mode.

Author: Matt Clarkson <mattc@catalyst.net.nz>

mod/wiki/ewiki/plugins/moodle/f_fixhtml.php

index aac7a16b86251fa16e767d8d83e7ca62803581f4..b45d637ce0add705addc4de265a68ab93411d31e 100644 (file)
@@ -98,6 +98,7 @@ function ewiki_html_tag_balancer(&$html) {
 
             #-- cdata
             if($tname=='![cdata[') {
+               $tname = strtoupper($tname); // Needs to be uppercase for XHTML compliance
                 // LEAVE THE POOR THING ALONE!
             }
             #-- standalone tag