Escaped text output during relinking, as per SC 139
This commit is contained in:
@@ -319,7 +319,7 @@
|
||||
$assignment->description = addslashes($result);
|
||||
$status = update_record("assignment",$assignment);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
$chat->intro = addslashes($result);
|
||||
$status = update_record("chat",$chat);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -338,7 +338,7 @@ function choice_options_restore_mods($choiceid,$info,$restore) {
|
||||
$choice->text = addslashes($result);
|
||||
$status = update_record("choice",$choice);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -984,7 +984,7 @@
|
||||
$post->message = addslashes($result);
|
||||
$status = update_record("forum_posts",$post);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
@@ -1014,7 +1014,7 @@
|
||||
$forum->intro = addslashes($result);
|
||||
$status = update_record("forum",$forum);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -599,7 +599,7 @@
|
||||
$entry->definition = addslashes($result);
|
||||
$status = update_record("glossary_entries",$entry);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
@@ -629,7 +629,7 @@
|
||||
$glossary->intro = addslashes($result);
|
||||
$status = update_record("glossary",$glossary);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
$label->content = addslashes($result);
|
||||
$status = update_record("label", $label);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -726,7 +726,7 @@
|
||||
$page->contents = addslashes($result);
|
||||
$status = update_record("lesson_pages",$page);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -1948,7 +1948,7 @@
|
||||
$quiz->intro = addslashes($result);
|
||||
$status = update_record("quiz",$quiz);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -191,8 +191,8 @@
|
||||
$resource->summary = addslashes($result2);
|
||||
$status = update_record("resource",$resource);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content1."<br />changed to</br>".$result1."<hr /><br />";
|
||||
echo "<br /><hr />".$content2."<br />changed to</br>".$result2."<hr /><br />";
|
||||
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 />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -441,7 +441,7 @@
|
||||
$scorm->summary = addslashes($result);
|
||||
$status = update_record("scorm",$scorm);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
$survey->intro = addslashes($result);
|
||||
$status = update_record("survey",$survey);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -350,7 +350,7 @@
|
||||
$page->content = addslashes($result);
|
||||
$status = update_record("wiki_pages",$page);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to<br />".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
@@ -380,7 +380,7 @@
|
||||
$wiki->summary = addslashes($result);
|
||||
$status = update_record("wiki",$wiki);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
@@ -733,7 +733,7 @@
|
||||
$workshop->description = addslashes($result);
|
||||
$status = update_record("workshop",$workshop);
|
||||
if ($CFG->debug>7) {
|
||||
echo "<br /><hr />".$content."<br />changed to</br>".$result."<hr /><br />";
|
||||
echo '<br /><hr />'.htmlentities($content).'<br />changed to<br />'.htmlentities($result).'<hr /><br />';
|
||||
}
|
||||
}
|
||||
//Do some output
|
||||
|
||||
Reference in New Issue
Block a user