Skip to content

Commit

Permalink
MDL-9683 Fixed error call for when confirm_sesskey() fails in formslib
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 8, 2008
1 parent 68679f9 commit 023fc40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en_utf8/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
$string['invalidmd5'] = 'Invalid md5';
$string['invalidrequest'] = 'Invalid request';
$string['invalidrole'] = 'Invalid role';
$string['invalidsesskey'] = 'Incorrect sesskey submitted, form not accepted!';
$string['invalidurl'] = 'Invalid URL';
$string['iplookupfailed'] = 'Cannot find geo information about this IP address $a';
$string['iplookupprivate'] = 'Cannot display lookup of private IP address';
Expand Down
2 changes: 1 addition & 1 deletion lib/formslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function _process_submission($method) {
// the _qf__.$this->_formname serves as a marker that form was actually submitted
if (array_key_exists('_qf__'.$this->_formname, $submission) and $submission['_qf__'.$this->_formname] == 1) {
if (!confirm_sesskey()) {
error('Incorrect sesskey submitted, form not accepted!');
print_error('invalidsesskey');
}
$files = $_FILES;
} else {
Expand Down

0 comments on commit 023fc40

Please sign in to comment.