diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-09 19:40:49 +0000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-11 21:26:02 +1000 |
| commit | 38c9ac65d8fb110c7977638b84775c3f064b8378 (patch) | |
| tree | 3fd604002fa69f72a63e872983af5dcc44cb29b9 /inc | |
| parent | 5836cd23d2d58c77bbb04d061c43c232a102c979 (diff) | |
Critical bug: could not move threads/posts with spoiler images, resulted in I/O error
Conflicts:
inc/mod/pages.php
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/mod/pages.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 706d747d..10205a11 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1053,7 +1053,8 @@ function mod_move($originBoard, $postID) { if ($post['has_file']) { // copy image $clone($file_src, sprintf($config['board_path'], $board['uri']) . $config['dir']['img'] . $post['file']); - $clone($file_thumb, sprintf($config['board_path'], $board['uri']) . $config['dir']['thumb'] . $post['thumb']); + if (!in_array($post['thumb'], array('spoiler', 'deleted'))) + $clone($file_thumb, sprintf($config['board_path'], $board['uri']) . $config['dir']['thumb'] . $post['thumb']); } // go back to the original board to fetch replies |
