mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
htmlentities() to s()
This commit is contained in:
parent
3725cc8a58
commit
1b1858d260
15 changed files with 21 additions and 21 deletions
|
@ -4091,7 +4091,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
|
||||||
$linkobject .= '</span>';
|
$linkobject .= '</span>';
|
||||||
|
|
||||||
if ($text) {
|
if ($text) {
|
||||||
$url = '/help.php?module='. $module .'&text='. htmlentities(urlencode($text));
|
$url = '/help.php?module='. $module .'&text='. s(urlencode($text));
|
||||||
} else {
|
} else {
|
||||||
$url = '/help.php?module='. $module .'&file='. $page .'.html';
|
$url = '/help.php?module='. $module .'&file='. $page .'.html';
|
||||||
}
|
}
|
||||||
|
|
|
@ -324,7 +324,7 @@
|
||||||
$status = update_record("assignment",$assignment);
|
$status = update_record("assignment",$assignment);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,7 +222,7 @@
|
||||||
$status = update_record("chat",$chat);
|
$status = update_record("chat",$chat);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -349,7 +349,7 @@ function choice_options_restore_mods($choiceid,$info,$restore) {
|
||||||
$status = update_record("choice",$choice);
|
$status = update_record("choice",$choice);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1044,7 +1044,7 @@
|
||||||
$status = update_record("forum_posts",$post);
|
$status = update_record("forum_posts",$post);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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);
|
$status = update_record("forum",$forum);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -614,7 +614,7 @@
|
||||||
$status = update_record("glossary_entries",$entry);
|
$status = update_record("glossary_entries",$entry);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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);
|
$status = update_record("glossary",$glossary);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
$status = update_record("label", $label);
|
$status = update_record("label", $label);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,7 +218,7 @@ function extract_data($pages, $courseid, $lessonname, $modname) {
|
||||||
|
|
||||||
$tags = '<div><img>'; // should also allow <b><i>
|
$tags = '<div><img>'; // should also allow <b><i>
|
||||||
$string = strip_tags($content,$tags);
|
$string = strip_tags($content,$tags);
|
||||||
//echo htmlentities($string);
|
//echo s($string);
|
||||||
|
|
||||||
$matches = array();
|
$matches = array();
|
||||||
// this will look for a non nested tag that is closed
|
// 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -765,7 +765,7 @@
|
||||||
$status = update_record("lesson_pages",$page);
|
$status = update_record("lesson_pages",$page);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -481,7 +481,7 @@
|
||||||
$status = update_record("quiz",$quiz);
|
$status = update_record("quiz",$quiz);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,9 +202,9 @@
|
||||||
$status = update_record("resource",$resource);
|
$status = update_record("resource",$resource);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
if (!defined('RESTORE_SILENTLY')) {
|
||||||
echo '<br /><hr />'.htmlentities($content1).'<br />changed to<br />'.htmlentities($result1).'<hr /><br />';
|
echo '<br /><hr />'.s($content1).'<br />changed to<br />'.s($result1).'<hr /><br />';
|
||||||
echo '<br /><hr />'.htmlentities($content2).'<br />changed to<br />'.htmlentities($result2).'<hr /><br />';
|
echo '<br /><hr />'.s($content2).'<br />changed to<br />'.s($result2).'<hr /><br />';
|
||||||
echo '<br /><hr />'.htmlentities($content3).'<br />changed to<br />'.htmlentities($result3).'<hr /><br />';
|
echo '<br /><hr />'.s($content3).'<br />changed to<br />'.s($result3).'<hr /><br />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -484,7 +484,7 @@
|
||||||
$status = update_record("scorm",$scorm);
|
$status = update_record("scorm",$scorm);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -288,7 +288,7 @@
|
||||||
$status = update_record("survey",$survey);
|
$status = update_record("survey",$survey);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -357,7 +357,7 @@
|
||||||
$status = update_record("wiki_pages",$page);
|
$status = update_record("wiki_pages",$page);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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);
|
$status = update_record("wiki",$wiki);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -752,7 +752,7 @@
|
||||||
$status = update_record("workshop",$workshop);
|
$status = update_record("workshop",$workshop);
|
||||||
if ($CFG->debug>7) {
|
if ($CFG->debug>7) {
|
||||||
if (!defined('RESTORE_SILENTLY')) {
|
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 />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue