Skip to content

Commit

Permalink
Merge pull request fex-team#2389 from birdol/patch-1
Browse files Browse the repository at this point in the history
Update Uploader.class.php
  • Loading branch information
Phinome committed Jan 22, 2016
2 parents d687498 + f3bf5c4 commit b7aca53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/Uploader.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private function getFullName()
$format = str_replace("{ss}", $d[6], $format);
$format = str_replace("{time}", $t, $format);

//过滤文件名的非法自负,并替换文件名
//过滤文件名的非法字符,并替换文件名
$oriName = substr($this->oriName, 0, strrpos($this->oriName, '.'));
$oriName = preg_replace("/[\|\?\"\<\>\/\*\\\\]+/", '', $oriName);
$format = str_replace("{filename}", $oriName, $format);
Expand Down Expand Up @@ -350,4 +350,4 @@ public function getFileInfo()
);
}

}
}

0 comments on commit b7aca53

Please sign in to comment.