]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17203 prevent disclosing of sensitive information
authorskodak <skodak>
Wed, 31 Dec 2008 15:53:31 +0000 (15:53 +0000)
committerskodak <skodak>
Wed, 31 Dec 2008 15:53:31 +0000 (15:53 +0000)
calendar/export_execute.php

index d5ee4ada63df9fe040b86308278737d41568de16..6634d12a1efc0f2f093693cd60984faa612a1e9f 100644 (file)
@@ -15,12 +15,12 @@ if (empty($CFG->enablecalendarexport)) {
 //Fetch user information
 if (!$user = get_complete_user_data('username', $username)) {
    //No such user
-   die("No such user '$username'");
+    die('Invalid authentication');
 }
 
 //Check authentication token
 if ($authtoken != sha1($username . $user->password . $CFG->calendar_exportsalt)) {
-    die('Invalid authentication token');
+    die('Invalid authentication');
 }
 
 $what = optional_param('preset_what', 'all', PARAM_ALPHA);