MDL-25836 fixed stripped src attribute from script tag
authorPetr Skoda <commits@skodak.org>
Tue, 11 Jan 2011 21:01:43 +0000 (22:01 +0100)
committerPetr Skoda <commits@skodak.org>
Wed, 12 Jan 2011 18:33:18 +0000 (19:33 +0100)
lib/editor/tinymce/lib.php

index 5a54a91..b0f3bf0 100644 (file)
@@ -158,7 +158,7 @@ class tinymce_texteditor extends texteditor {
         if (empty($CFG->xmlstrictheaders) and (!empty($options['legacy']) or !empty($options['noclean']) or !empty($options['trusted']))) {
             // now deal somehow with non-standard tags, people scream when we do not make moodle code xtml strict,
             // but they scream even more when we strip all tags that are not strict :-(
-            $params['valid_elements'] = '*[*]';
+            $params['valid_elements'] = 'script[src|type],*[*]'; // for some reason the *[*] does not inlcude javascript src attribute MDL-25836
             $params['invalid_elements'] = '';
         }