]> git.mjollnir.org Git - moodle.git/commitdiff
Remove quotes from title - these can cause the stylesheet to not load
authormoodler <moodler>
Fri, 24 Oct 2003 06:27:15 +0000 (06:27 +0000)
committermoodler <moodler>
Fri, 24 Oct 2003 06:27:15 +0000 (06:27 +0000)
properly on Internet Explorer.

lib/weblib.php

index ff0ec5b69776b69f74606a8f641f821b19cf57d7..bfefaae265581487c6826a90ff1991a63773921f 100644 (file)
@@ -839,6 +839,8 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
         $direction = " xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"$currentlanguage\" $direction";
     }
 
+    $title = str_replace('"', '&quot;', $title);
+
     include ("$CFG->dirroot/theme/$CFG->theme/header.html");
 }