Upload by URL: still use fatal_error_handler() on shutdown
This commit is contained in:
parent
00a1841cbc
commit
319cd2520f
1
post.php
1
post.php
@ -288,6 +288,7 @@ if (isset($_POST['delete'])) {
|
|||||||
$post['file_tmp'] = tempnam($config['tmp'], 'url');
|
$post['file_tmp'] = tempnam($config['tmp'], 'url');
|
||||||
function unlink_tmp_file($file) {
|
function unlink_tmp_file($file) {
|
||||||
@unlink($file);
|
@unlink($file);
|
||||||
|
fatal_error_handler();
|
||||||
}
|
}
|
||||||
register_shutdown_function('unlink_tmp_file', $post['file_tmp']);
|
register_shutdown_function('unlink_tmp_file', $post['file_tmp']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user