Commit b876a003 authored by David Mudrak's avatar David Mudrak
Browse files

MDL-25588 report_customlang: removed redundant safe path check

Only the $lang part of the the path comes from the browser and it is
checked in get_localpack_location() anyway.
parent 2f698d2a
......@@ -257,9 +257,6 @@ class report_customlang_utils {
$packageinfo .= "\n * @subpackage $subpackage";
$filepath = self::get_localpack_location($lang);
if ($filepath !== clean_param($filepath, PARAM_SAFEPATH)) {
throw new coding_exception('Incorrect file location '.s($filepath));
$filepath = $filepath.'/'.$filename;
if (!is_dir(dirname($filepath))) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment