From 5c1c420f1988331a601ce6a20ca85f9c8c980ec3 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Fri, 9 Jan 2009 01:57:56 +0000 Subject: [PATCH] "REPOSITORY/MDL-13766, allow numbers in repository name" --- admin/repository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/repository.php b/admin/repository.php index 9d3876d600..a856ef22e3 100644 --- a/admin/repository.php +++ b/admin/repository.php @@ -8,7 +8,7 @@ $CFG->pagepath = 'admin/managerepositories'; $edit = optional_param('edit', 0, PARAM_ALPHAEXT); $new = optional_param('new', '', PARAM_FORMAT); -$hide = optional_param('hide', 0, PARAM_ALPHAEXT); +$hide = optional_param('hide', '', PARAM_ALPHANUM); $delete = optional_param('delete', 0, PARAM_ALPHAEXT); $sure = optional_param('sure', '', PARAM_ALPHA); $move = optional_param('move', '', PARAM_ALPHAEXT); @@ -134,6 +134,7 @@ if (!empty($edit) || !empty($new)) { if (!confirm_sesskey()) { print_error('confirmsesskeybad', '', $baseurl); } + var_dump($hide); $repositorytype = repository::get_type_by_typename($hide); $repositorytype->switch_and_update_visibility(); $return = true; -- 2.39.5