浏览代码

Reverted back to old method of extension grabbing.

pull/24/head
Teknikode 6 年前
父节点
当前提交
6f162357da
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      includes/common.php

+ 1
- 2
includes/common.php 查看文件

@@ -174,8 +174,7 @@ function upload($files, $CONF, $db)
if (!empty($files)) {
$filesize = filesize($files['file']['tmp_name']);
$file_type = mime_content_type($files['file']['tmp_name']);
//$ext = pathinfo($files['file']['name'], PATHINFO_EXTENSION);
$ext = substr($files['file']['name'], strrpos($files['file']['name'], '.')+1);
$ext = pathinfo($files['file']['name'], PATHINFO_EXTENSION);
if ($logged_in == 1)
{
$user_id = $user->id;

正在加载...
取消
保存