* 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 5aa1ae003e
commit 4f0fca021c
2 changed files with 21 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"]))