Skip to content
Snippets Groups Projects

Hotline master

Merged Patrick Barroca requested to merge hotline-master into master
Compare and
+ 27
35
Preferences
Compare changes
Files
@@ -33,6 +33,8 @@ function auth() {
$path = array_key_exists('path', $_GET) ? $_GET['path'] : '';
$path = array_key_exists('currentpath', $_POST) ? $_POST['currentpath'] : $path;
$path = array_key_exists('mode', $_GET) && 'rename' == $_GET['mode'] && array_key_exists('old', $_GET)
? $_GET['old'] : $path;
return (new Class_FileManager())->isAuthorized($path);
}