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');
                                  'vcf'  => 'text/x-vcard');
 
 
 /* Register browser-supported image types */
 /* Register browser-supported image types */
-$attachment_common_types = $_SESSION['attachment_common_types'];
+sqextractGlobalVar('attachment_common_types');
 if (isset($attachment_common_types)) {
 if (isset($attachment_common_types)) {
     /* Don't run this before being logged in. That may happen
     /* Don't run this before being logged in. That may happen
        when plugins include mime.php */
        when plugins include mime.php */