Permalink
Browse files

Fix for MDL-8137: turned off autocomplete for all forms for which stu…

…dents enter data.
  • Loading branch information...
1 parent 50d1bd1 commit 8cde300d8c2d794ca0a365d5c86589cfcb404145 mark-nielsen committed Jan 29, 2007
Showing with 3 additions and 3 deletions.
  1. +1 −1 mod/lesson/highscores.php
  2. +2 −2 mod/lesson/view.php
@@ -139,7 +139,7 @@
case 'add':
print_simple_box_start('center');
echo '<div align="center">
- <form name="nickname" method ="post" action="'.$CFG->wwwroot.'/mod/lesson/highscores.php">
+ <form name="nickname" method ="post" action="'.$CFG->wwwroot.'/mod/lesson/highscores.php" autocomplete="off">
<input type="hidden" name="id" value="'.$cm->id.'" />
<input type="hidden" name="mode" value="save" />
<input type="hidden" name="sesskey" value="'.sesskey().'" />';
View
@@ -66,7 +66,7 @@
lesson_print_header($cm, $course, $lesson);
echo "<div class=\"password-form\">\n";
print_simple_box_start('center');
- echo '<form name="password" method="post" action="'.$CFG->wwwroot.'/mod/lesson/view.php">' . "\n";
+ echo '<form name="password" method="post" action="'.$CFG->wwwroot.'/mod/lesson/view.php" autocomplete="off">' . "\n";
echo '<input type="hidden" name="id" value="'. $cm->id .'" />' . "\n";
if (optional_param('userpassword', 0, PARAM_CLEAN)) {
notify(get_string('loginfail', 'lesson'));
@@ -537,7 +537,7 @@
// get the answers in a set order, the id order
if ($answers = get_records("lesson_answers", "pageid", $page->id, "id")) {
- echo "<form name=\"answerform\" method =\"post\" action=\"lesson.php\">";
+ echo "<form name=\"answerform\" method =\"post\" action=\"lesson.php\" autocomplete=\"off\">";
echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />";
echo "<input type=\"hidden\" name=\"action\" value=\"continue\" />";
echo "<input type=\"hidden\" name=\"pageid\" value=\"$pageid\" />";

0 comments on commit 8cde300

Please sign in to comment.