]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12153, "Validome - moodle.org invalid - require Content-Script-Type".
authornfreear <nfreear>
Tue, 13 Nov 2007 14:46:44 +0000 (14:46 +0000)
committernfreear <nfreear>
Tue, 13 Nov 2007 14:46:44 +0000 (14:46 +0000)
lib/weblib.php

index fb690fabf6b0f82953ea3aaa8db3fc399512be3a..59b4ac1a3ada1d65c927cdbad2008e690514d7e1 100644 (file)
@@ -2410,11 +2410,13 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
     }
 
 
-    $meta = '<meta http-equiv="content-type" content="text/html; charset=utf-8" />' .
+    $meta = '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' .
             "\n" . $meta . "\n";
     if (!$usexml) {
-        @header('Content-type: text/html; charset=utf-8');
+        @header('Content-Type: text/html; charset=utf-8');
     }
+    @header('Content-Script-Type: text/javascript');
+    @header('Content-Style-Type: text/css');
 
     //Accessibility: added the 'lang' attribute to $direction, used in theme <html> tag.
     $direction = get_html_lang($dir=true);