Support for user specific upload and save directories (RFE #1260039).
This commit is contained in:
@@ -469,7 +469,7 @@ function PMA_sqlQueryFormUpload() {
|
||||
$matcher = '@\.sql(\.(' . PMA_supportedDecompressions() . '))?$@'; // we allow only SQL here
|
||||
|
||||
if (!empty($GLOBALS['cfg']['UploadDir'])) {
|
||||
$files = PMA_getFileSelectOptions($GLOBALS['cfg']['UploadDir'], $matcher, (isset($timeout_passed) && $timeout_passed && isset($local_import_file)) ? $local_import_file : '');
|
||||
$files = PMA_getFileSelectOptions(PMA_userDir($GLOBALS['cfg']['UploadDir']), $matcher, (isset($timeout_passed) && $timeout_passed && isset($local_import_file)) ? $local_import_file : '');
|
||||
} else {
|
||||
$files = '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user