getting rid of superglobal usee for issue#17769,

Signed-off-by: Andrew Asche <asche069@gmail.com>
This commit is contained in:
Andrew Asche 2025-10-27 21:35:58 -05:00 committed by Maurício Meneghini Fauth
parent 8b43d270dd
commit 959d251559
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
2 changed files with 6 additions and 4 deletions

View File

@ -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>

View File

@ -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']);