Permalink
Browse files

MDL-37474 cache: fixed bug with definition cleaning

  • Loading branch information...
1 parent a917ef6 commit c6cbc3c70c27f910e77d39ac00b62274a095026b Sam Hemelryk committed Jan 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 cache/admin.php
View
@@ -129,7 +129,7 @@
}
break;
case 'editdefinitionmapping' : // Edit definition mappings.
- $definition = required_param('definition', PARAM_ALPHANUMEXT);
+ $definition = required_param('definition', PARAM_SAFEPATH);
$title = get_string('editdefinitionmappings', 'cache', $definition);
$mform = new cache_definition_mappings_form($PAGE->url, array('definition' => $definition));
if ($mform->is_cancelled()) {
@@ -168,7 +168,7 @@
break;
case 'purgedefinition': // Purge a specific definition.
- $definition = required_param('definition', PARAM_ALPHANUMEXT);
+ $definition = required_param('definition', PARAM_SAFEPATH);
list($component, $area) = explode('/', $definition, 2);
cache_helper::purge_by_definition($component, $area);
redirect($PAGE->url, get_string('purgedefinitionsuccess', 'cache'), 5);

0 comments on commit c6cbc3c

Please sign in to comment.