forked from leftypol/leftypol
Upload by URL: still use fatal_error_handler() on shutdown
This commit is contained in:
parent
00a1841cbc
commit
319cd2520f
1 changed files with 1 additions and 0 deletions
1
post.php
1
post.php
|
@ -288,6 +288,7 @@ if (isset($_POST['delete'])) {
|
|||
$post['file_tmp'] = tempnam($config['tmp'], 'url');
|
||||
function unlink_tmp_file($file) {
|
||||
@unlink($file);
|
||||
fatal_error_handler();
|
||||
}
|
||||
register_shutdown_function('unlink_tmp_file', $post['file_tmp']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue