Critical bug: could not move threads/posts with spoiler images, resulted in I/O error

Conflicts:
	inc/mod/pages.php
This commit is contained in:
ctrlcctrlv 2013-08-09 19:40:49 +00:00 committed by Michael Foster
parent 5836cd23d2
commit 38c9ac65d8

View File

@ -1053,6 +1053,7 @@ function mod_move($originBoard, $postID) {
if ($post['has_file']) { if ($post['has_file']) {
// copy image // copy image
$clone($file_src, sprintf($config['board_path'], $board['uri']) . $config['dir']['img'] . $post['file']); $clone($file_src, sprintf($config['board_path'], $board['uri']) . $config['dir']['img'] . $post['file']);
if (!in_array($post['thumb'], array('spoiler', 'deleted')))
$clone($file_thumb, sprintf($config['board_path'], $board['uri']) . $config['dir']['thumb'] . $post['thumb']); $clone($file_thumb, sprintf($config['board_path'], $board['uri']) . $config['dir']['thumb'] . $post['thumb']);
} }