]> git.mjollnir.org Git - moodle.git/commitdiff
htmlentities() to s()
authorstronk7 <stronk7>
Tue, 11 Apr 2006 16:09:52 +0000 (16:09 +0000)
committerstronk7 <stronk7>
Tue, 11 Apr 2006 16:09:52 +0000 (16:09 +0000)
15 files changed:
lib/weblib.php
mod/assignment/restorelib.php
mod/chat/restorelib.php
mod/choice/restorelib.php
mod/forum/restorelib.php
mod/glossary/restorelib.php
mod/label/restorelib.php
mod/lesson/importppt.php
mod/lesson/restorelib.php
mod/quiz/restorelib.php
mod/resource/restorelib.php
mod/scorm/restorelib.php
mod/survey/restorelib.php
mod/wiki/restorelib.php
mod/workshop/restorelib.php

index 0aac8106c0b2d103d9f9d31def93b4f0e2782b24..b88019fc9e83b4953efd05a75a644613665a018c 100644 (file)
@@ -4091,7 +4091,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
     $linkobject .= '</span>';
 
     if ($text) {
-        $url = '/help.php?module='. $module .'&amp;text='. htmlentities(urlencode($text));
+        $url = '/help.php?module='. $module .'&amp;text='. s(urlencode($text));
     } else {
         $url = '/help.php?module='. $module .'&amp;file='. $page .'.html';
     }
index e78521f47e7678e70c7142ebb38b96895ac82127..ee255e0ec164856a9a766d8b1eccfa5edb8f66a4 100644 (file)
                     $status = update_record("assignment",$assignment);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index 2762199b68edfd79e85219555663d761efc9f781..dddf7fec5a6fe409d8f191afb2c4579204c378df 100644 (file)
                     $status = update_record("chat",$chat);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index bfe26dc0311a4f2ebd75cc550893ade61e89639a..3aca867a64b0f299f380318c31b62f1afd43f60a 100644 (file)
@@ -349,7 +349,7 @@ function choice_options_restore_mods($choiceid,$info,$restore) {
                     $status = update_record("choice",$choice);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index a3f81baca3edec076aaaff54a53013469da56d73..9ab55de52666dd386f268b33e2e350836adc3da3 100644 (file)
                     $status = update_record("forum_posts",$post);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
                     $status = update_record("forum",$forum);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index 6f20b23c9c3cff15bc645648de71c8750956367b..fdb6925ca633d23f8c0adfa194eca2536037cf61 100644 (file)
                     $status = update_record("glossary_entries",$entry);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
                     $status = update_record("glossary",$glossary);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index f3792c31a8296ebfa93c3a393ff4d997ea946f18..9b3aa6f6a43360bf9e0e6b225fb5ed8a246a9379 100644 (file)
@@ -83,7 +83,7 @@
                     $status = update_record("label", $label);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index 8620bfa9e7cd4b7943cf9b9ca3e53d8ac5772509..db29074827e7ae8dc9d258327b10298020919799 100644 (file)
@@ -218,7 +218,7 @@ function extract_data($pages, $courseid, $lessonname, $modname) {
         
         $tags = '<div><img>'; // should also allow <b><i>
         $string = strip_tags($content,$tags);
-        //echo htmlentities($string);
+        //echo s($string);
 
         $matches = array();
         // this will look for a non nested tag that is closed
@@ -584,4 +584,4 @@ function book_save_objects($chapters, $bookid, $pageid='0') {
     return true;
 }
 
-?>
\ No newline at end of file
+?>
index bf8814319f3499e4b86aa06feae7dab5108b46e1..cac89b57321fb14272f9e7f7cccc3cf2b2b70e6b 100644 (file)
                     $status = update_record("lesson_pages",$page);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index 7a5157c1161fed288e904a465f64017f73db7f85..9a895808cd2f6d6948abc27a106a0628b2896c64 100644 (file)
                     $status = update_record("quiz",$quiz);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index 0cb24e78a2b8ea673d6f01a5a2b866c171fe184e..2d5cd21d8f6534ab5ec4780c28ba4aff945ea02c 100644 (file)
                     $status = update_record("resource",$resource);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content1).'<br />changed to<br />'.htmlentities($result1).'<hr /><br />';
-                            echo '<br /><hr />'.htmlentities($content2).'<br />changed to<br />'.htmlentities($result2).'<hr /><br />';
-                            echo '<br /><hr />'.htmlentities($content3).'<br />changed to<br />'.htmlentities($result3).'<hr /><br />';
+                            echo '<br /><hr />'.s($content1).'<br />changed to<br />'.s($result1).'<hr /><br />';
+                            echo '<br /><hr />'.s($content2).'<br />changed to<br />'.s($result2).'<hr /><br />';
+                            echo '<br /><hr />'.s($content3).'<br />changed to<br />'.s($result3).'<hr /><br />';
                         }
                     }
                 }
index 748d64856973d4f20e74d2718550b97e53ce1f01..2e9b01422520ccca6f74a97b52688f723ce12bf2 100755 (executable)
                     $status = update_record("scorm",$scorm);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index 6dac48b27adc01f4daafd7b0ac098ff4f282165e..53c658518b7c95b9846e84452f82478438a0e663 100644 (file)
                     $status = update_record("survey",$survey);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index 39352fdfa7a959822c4be9db787645a2adc9fa4a..8a016b0e5941e56ae75e2bca897c6b2d292d5bbd 100644 (file)
                     $status = update_record("wiki_pages",$page);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
                     $status = update_record("wiki",$wiki);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }
index e8bf1cc151f96c4258ea71497e5a4c28e9eeef19..1bd107e83aef67751f229b8fa1a82acf0239d262 100644 (file)
                     $status = update_record("workshop",$workshop);
                     if ($CFG->debug>7) {
                         if (!defined('RESTORE_SILENTLY')) {
-                            echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
+                            echo '<br /><hr />'.s($content).'<br />changed to<br />'.s($result).'<hr /><br />';
                         }
                     }
                 }