Merge #19908 - getting rid of superglobal use
Closes #19908 Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
This commit is contained in:
commit
b3c3f5e025
@ -2322,6 +2322,8 @@
|
||||
</MixedArrayAccess>
|
||||
<MixedAssignment>
|
||||
<code><![CDATA[$idKey]]></code>
|
||||
<code><![CDATA[$localImportFile]]></code>
|
||||
<code><![CDATA[$timeoutPassed]]></code>
|
||||
</MixedAssignment>
|
||||
<MixedMethodCall>
|
||||
<code><![CDATA[$_SESSION[Ajax::SESSION_KEY]['handler']::getIdKey()]]></code>
|
||||
|
||||
@ -103,12 +103,12 @@ final readonly class ImportController implements InvocableController
|
||||
}
|
||||
|
||||
$offset = null;
|
||||
if (isset($_REQUEST['offset']) && is_numeric($_REQUEST['offset'])) {
|
||||
$offset = (int) $_REQUEST['offset'];
|
||||
if (is_numeric($request->getParam('offset'))) {
|
||||
$offset = (int) $request->getParam('offset');
|
||||
}
|
||||
|
||||
$timeoutPassed = $_REQUEST['timeout_passed'] ?? null;
|
||||
$localImportFile = $_REQUEST['local_import_file'] ?? null;
|
||||
$timeoutPassed = $request->getParam('timeout_passed');
|
||||
$localImportFile = $request->getParam('local_import_file');
|
||||
$compressions = Import::getCompressions();
|
||||
|
||||
$charsets = Charsets::getCharsets($this->dbi, $this->config->selectedServer['DisableIS']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user