summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-27 08:13:23 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-27 08:13:23 +1000
commit319cd2520ff18120570e56eba04ceb1206007375 (patch)
tree5d86647e9e42cb058d9adf698b5215a0b89f4626
parent00a1841cbc6fb76cd96c51142a3a1b86a073d58a (diff)
Upload by URL: still use fatal_error_handler() on shutdown
-rw-r--r--post.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/post.php b/post.php
index 2450bf06..6de3edfa 100644
--- a/post.php
+++ b/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']);