mirror of
https://github.com/myronblair/novacpx
synced 2026-07-28 13:14:33 -05:00
Compare commits
2 Commits
bc691466cd
...
14cb285209
| Author | SHA1 | Date | |
|---|---|---|---|
| 14cb285209 | |||
| d6321c3268 |
@@ -220,7 +220,7 @@ match ($action) {
|
||||
})(),
|
||||
|
||||
'upload' => (function() use ($baseDir, $body) {
|
||||
$dir = safe_path($baseDir, $body['path'] ?? '/public_html');
|
||||
$dir = safe_path($baseDir, $body['path'] ?? $_POST['path'] ?? $_GET['path'] ?? '/public_html');
|
||||
require_dangerous_confirm($baseDir, $dir, $body);
|
||||
if (!is_dir($dir)) Response::error("Target directory not found");
|
||||
if (!is_writable($dir)) Response::error("Permission denied writing to this directory");
|
||||
|
||||
Reference in New Issue
Block a user