From daad519b85463ce21600af22adae8207517f35c5 Mon Sep 17 00:00:00 2001 From: czaks Date: Fri, 24 Oct 2014 13:24:33 +0200 Subject: config[php_md5] feature --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'post.php') diff --git a/post.php b/post.php index 223ddd45..21929bfa 100644 --- a/post.php +++ b/post.php @@ -568,7 +568,7 @@ if (isset($_POST['delete'])) { $md5cmd = $config['bsd_md5'] ? 'md5 -r' : 'md5sum'; - if ($output = shell_exec_error("cat $filenames | $md5cmd")) { + if (!$config['php_md5'] && $output = shell_exec_error("cat $filenames | $md5cmd")) { $explodedvar = explode(' ', $output); $hash = $explodedvar[0]; $post['filehash'] = $hash; -- cgit v1.3