htmlentities() to s()

This commit is contained in:
stronk7 2006-04-11 16:09:52 +00:00
parent 3725cc8a58
commit 1b1858d260
15 changed files with 21 additions and 21 deletions

View 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';
}

View file

@ -324,7 +324,7 @@
$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 />';
}
}
}

View file

@ -222,7 +222,7 @@
$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 />';
}
}
}

View 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 />';
}
}
}

View file

@ -1044,7 +1044,7 @@
$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 />';
}
}
}
@ -1078,7 +1078,7 @@
$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 />';
}
}
}

View file

@ -614,7 +614,7 @@
$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 />';
}
}
}
@ -648,7 +648,7 @@
$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 />';
}
}
}

View 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 />';
}
}
}

View 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;
}
?>
?>

View file

@ -765,7 +765,7 @@
$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 />';
}
}
}

View file

@ -481,7 +481,7 @@
$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 />';
}
}
}

View file

@ -202,9 +202,9 @@
$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 />';
}
}
}

View file

@ -484,7 +484,7 @@
$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 />';
}
}
}

View file

@ -288,7 +288,7 @@
$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 />';
}
}
}

View file

@ -357,7 +357,7 @@
$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 />';
}
}
}
@ -391,7 +391,7 @@
$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 />';
}
}
}

View file

@ -752,7 +752,7 @@
$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 />';
}
}
}