Permalink
Browse files

Escaped text output during relinking, as per SC 139

  • Loading branch information...
moodler
moodler committed Jul 12, 2005
1 parent efed457 commit 5bccb31ec7b2417830fa67f37ebd1c35772342c8
@@ -319,7 +319,7 @@ function assignment_decode_content_links_caller($restore) {
$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
View
@@ -217,7 +217,7 @@ function chat_decode_content_links_caller($restore) {
$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_decode_content_links_caller($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
View
@@ -984,7 +984,7 @@ function forum_decode_content_links_caller($restore) {
$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 @@ function forum_decode_content_links_caller($restore) {
$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 @@ function glossary_decode_content_links_caller($restore) {
$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 @@ function glossary_decode_content_links_caller($restore) {
$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
View
@@ -80,7 +80,7 @@ function label_decode_content_links_caller($restore) {
$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 @@ function lesson_decode_content_links_caller($restore) {
$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
View
@@ -1948,7 +1948,7 @@ function quiz_decode_content_links_caller($restore) {
$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 @@ function resource_decode_content_links_caller($restore) {
$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
View
@@ -441,7 +441,7 @@ function scorm_decode_content_links_caller($restore) {
$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 @@ function survey_decode_content_links_caller($restore) {
$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
View
@@ -350,7 +350,7 @@ function wiki_decode_content_links_caller($restore) {
$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 @@ function wiki_decode_content_links_caller($restore) {
$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 @@ function workshop_decode_content_links_caller($restore) {
$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

0 comments on commit 5bccb31

Please sign in to comment.