stekkel 23 年之前
父节点
当前提交
2f4ef8d931
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/attachment_common.php

+ 1 - 1
functions/attachment_common.php

@@ -28,7 +28,7 @@ $FileExtensionToMimeType = array('bmp'  => 'image/x-bitmap',
                                  'vcf'  => 'text/x-vcard');
 
 /* Register browser-supported image types */
-$attachment_common_types = $_SESSION['attachment_common_types'];
+sqextractGlobalVar('attachment_common_types');
 if (isset($attachment_common_types)) {
     /* Don't run this before being logged in. That may happen
        when plugins include mime.php */