From f8df83f357b241d1dc6b75bcaeb2ce01bf09cb98 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Sun, 21 Mar 2010 14:01:30 +0000 Subject: [PATCH] repository_ajax.php MDL-21882 - dont default to a repo id which may exist This seems like a dangerous thing to do as it may cause actions on repoid 1 inadvertantly --- repository/repository_ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/repository_ajax.php b/repository/repository_ajax.php index 82e40c0ef31..a3026cfd14a 100755 --- a/repository/repository_ajax.php +++ b/repository/repository_ajax.php @@ -34,7 +34,7 @@ require_login(); /// Parameters $action = optional_param('action', '', PARAM_ALPHA); -$repo_id = optional_param('repo_id', 1, PARAM_INT); // repository ID +$repo_id = optional_param('repo_id', 0, PARAM_INT); // repository ID $callback = optional_param('callback', '', PARAM_CLEANHTML); $client_id = optional_param('client_id', '', PARAM_RAW); // client ID $contextid = optional_param('ctx_id', SYSCONTEXTID, PARAM_INT); // context ID