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
This commit is contained in:
Dan Poltawski
2010-03-21 14:01:30 +00:00
parent cf8af57ce9
commit f8df83f357
+1 -1
View File
@@ -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