* uninstall: do not allow directories outside BASE

* uninstall: do not allow absolute paths
This commit is contained in:
slawkens
2018-01-08 17:19:56 +01:00
parent 736ec61f85
commit f5aae3361f
2 changed files with 49 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ if(isset($_REQUEST['uninstall'])){
success('Successfully uninstalled plugin ' . $uninstall);
}
else {
error('Error while uninstalling plugin ' . $plugin_name . ': ' . Plugins::getError());
error('Error while uninstalling plugin ' . $uninstall . ': ' . Plugins::getError());
}
}
else if(isset($_FILES["plugin"]["name"]))