Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
18dc396
)
Merge branch 'MDL-69910-calendar-protectusername' of https://github.com/brendanheywoo...
author
Jake Dallimore
<jake@moodle.com>
Mon, 12 Oct 2020 02:05:28 +0000
(10:05 +0800)
committer
Jake Dallimore
<jake@moodle.com>
Mon, 12 Oct 2020 02:05:28 +0000
(10:05 +0800)
calendar/export_execute.php
patch
|
blob
|
blame
|
history
diff --git
a/calendar/export_execute.php
b/calendar/export_execute.php
index
66c348e
..
5a53e7e
100644
(file)
--- a/
calendar/export_execute.php
+++ b/
calendar/export_execute.php
@@
-18,7
+18,7
@@
if (empty($CFG->enablecalendarexport)) {
$checkuserid = !empty($userid) && $user = $DB->get_record('user', array('id' => $userid), 'id,password');
//allowing for fallback check of old url - MDL-27542
$checkusername = !empty($username) && $user = $DB->get_record('user', array('username' => $username), 'id,password');
-if (
!$checkuserid && !$checkusername
) {
+if (
(!$checkuserid && !$checkusername) || !$user
) {
//No such user
die('Invalid authentication');
}