Escaped text output during relinking, as per SC 139

This commit is contained in:
moodler
2005-07-12 07:53:02 +00:00
parent efed457566
commit 5bccb31ec7
13 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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