deduplicate code, clarifications

This commit is contained in:
El RIDO
2026-01-25 10:37:32 +01:00
parent 520408b830
commit d00fb264fb
5 changed files with 39 additions and 32 deletions
+1 -1
View File
@@ -517,7 +517,7 @@ EOT;
EOT;
}
$code .= PHP_EOL . <<<'EOT'
$file = tempnam(sys_get_temp_dir(), 'FOO');
$file = Helper::createTempFile();
file_put_contents($file, $paste);
Request::setInputStream($file);
$_SERVER['HTTP_X_REQUESTED_WITH'] = 'JSONHttpRequest';