Skip to content
Snippets Groups Projects
Commit ac2d59af authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #32361 : hotfix filemanager auth on uploads

parent 4ce80eeb
Branches
Tags
5 merge requests!1267Master,!1225Master,!1224Hotline master,!1223Stable,!1222Hotline#32361 impossibilite de charger des images dans le gestionnaire
- ticket #32361 : Impossibilité de charger des images dans le gestionnaire
\ No newline at end of file
......@@ -30,7 +30,11 @@ function auth() {
require_once($base_path . 'cosmogramme/storm_init.php');
setupSession();
return (new Class_FileManager())->isAuthorized($_GET['path']);
$path = array_key_exists('path', $_GET) ? $_GET['path'] : '';
$path = array_key_exists('currentpath', $_POST) ? $_POST['currentpath'] : $path;
return (new Class_FileManager())->isAuthorized($path);
}
......
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