From 8703ea3d4a579f44d7dab66eeedd0515b2719408 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Mon, 19 Mar 2012 02:55:34 +1100 Subject: [PATCH] $post['file_path'] --- post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/post.php b/post.php index b43b67fe..f4acf28a 100644 --- a/post.php +++ b/post.php @@ -587,8 +587,9 @@ } } - // Remove DIR_* before inserting them into the database. + // Remove board directories before inserting them into the database. if($post['has_file']) { + $post['file_path'] = $post['file']; $post['file'] = substr_replace($post['file'], '', 0, mb_strlen($board['dir'] . $config['dir']['img'])); if($is_an_image && $post['thumb'] != 'spoiler') $post['thumb'] = substr_replace($post['thumb'], '', 0, mb_strlen($board['dir'] . $config['dir']['thumb']));