소스 검색

fix a related bug

pull/18/head
czaks 9 년 전
부모
커밋
f4422e597b
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      post.php

+ 5
- 1
post.php 파일 보기

@@ -546,6 +546,7 @@ if (isset($_POST['delete'])) {
if ($post['has_file']) {
$fnarray = array();
foreach ($post['files'] as $key => &$file) {
if (!in_array($file['extension'], $config['allowed_ext']) && !in_array($file['extension'], $config['allowed_ext_files']))
error($config['error']['unknownext']);
@@ -560,6 +561,9 @@ if (isset($_POST['delete'])) {
} else {
$filenames .= (' ' . escapeshellarg($file['tmp_name']));
}

$fnarray[] = $file['tmp_name'];

$upload = $file['tmp_name'];
if (!is_readable($upload))
@@ -576,7 +580,7 @@ if (isset($_POST['delete'])) {
$post['filehash'] = md5_file($upload);
} else {
$str_to_hash = '';
foreach (explode(' ', $filenames) as $i => $f) {
foreach ($fnarray as $i => $f) {
$str_to_hash .= file_get_contents($f);
}
$post['filehash'] = md5($str_to_hash);


불러오는 중...
취소
저장