forked from leftypol/leftypol
Adds proper fatal error handling and fixes CLI error reporting.
This commit is contained in:
parent
77b99b2c4f
commit
f0a625b238
3 changed files with 18 additions and 18 deletions
2
post.php
2
post.php
|
@ -325,7 +325,7 @@ if (isset($_POST['delete'])) {
|
|||
$post['file_tmp'] = tempnam($config['tmp'], 'url');
|
||||
function unlink_tmp_file($file) {
|
||||
@unlink($file);
|
||||
error();
|
||||
fatal_error_handler();
|
||||
}
|
||||
register_shutdown_function('unlink_tmp_file', $post['file_tmp']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue