Huge bug: undoImage() was not working at all. This means lots of Tinyboard users probably have lone/permanent images. Working on Tinyboard-Tools script to remove all images/thumbs that don't belong.
This commit is contained in:
@@ -1859,10 +1859,10 @@ function undoImage(array $post) {
|
||||
if (!$post['has_file'])
|
||||
return;
|
||||
|
||||
if (isset($post['file']))
|
||||
file_unlink($post['file']);
|
||||
if (isset($post['thumb']))
|
||||
file_unlink($post['thumb']);
|
||||
if (isset($post['file_path']))
|
||||
file_unlink($post['file_path']);
|
||||
if (isset($post['thumb_path']))
|
||||
file_unlink($post['thumb_path']);
|
||||
}
|
||||
|
||||
function rDNS($ip_addr) {
|
||||
|
Reference in New Issue
Block a user