Permalink
Browse files

MDL-31166 do not try to cleanup data root paths in CLI install script

PARAM_TYPE can not be used for full OS paths. Admins have to enter correct data there, if not they get directory creation error.
  • Loading branch information...
skodak committed Jan 15, 2012
1 parent f70f6e9 commit 45d88e56cbc0ef02c5fbc35a05cdcda8bdc19150
Showing with 1 addition and 6 deletions.
  1. +1 −6 admin/cli/install.php
View
@@ -337,12 +337,7 @@
//We need dataroot before lang download
-$dataroot = clean_param($options['dataroot'], PARAM_PATH);
-if ($dataroot !== $options['dataroot']) {
- $a = (object)array('option' => 'dataroot', 'value' => $options['dataroot']);
- cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
-}
-$CFG->dataroot = $dataroot;
+$CFG->dataroot = $options['dataroot'];
if ($interactive) {
cli_separator();
$i=0;

0 comments on commit 45d88e5

Please sign in to comment.