MDL-20901 fixed input validation

This commit is contained in:
Petr Skoda
2009-11-19 19:28:19 +00:00
parent 6224d7a10d
commit 19c795b837
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -83,6 +83,7 @@
<tr>
<td colspan="2" style="text-align: center;">
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
+1 -1
View File
@@ -21,7 +21,7 @@ calendar_session_vars();
/// If data submitted, then process and store.
if ($form = data_submitted()) {
if ($form = data_submitted() and confirm_sesskey()) {
foreach ($form as $preference => $value) {
switch ($preference) {
case 'timeformat':