bugfix: sometimes this acts weird
This commit is contained in:
5
post.php
5
post.php
@@ -279,7 +279,10 @@ if (isset($_POST['delete'])) {
|
|||||||
error($config['error']['unknownext']);
|
error($config['error']['unknownext']);
|
||||||
|
|
||||||
$post['file_tmp'] = tempnam($config['tmp'], 'url');
|
$post['file_tmp'] = tempnam($config['tmp'], 'url');
|
||||||
register_shutdown_function('unlink', $post['file_tmp']);
|
function unlink_tmp_file($file) {
|
||||||
|
@unlink($file);
|
||||||
|
}
|
||||||
|
register_shutdown_function('unlink_tmp_file', $post['file_tmp']);
|
||||||
|
|
||||||
$fp = fopen($post['file_tmp'], 'w');
|
$fp = fopen($post['file_tmp'], 'w');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user