mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
deduplicate code, clarifications
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user