瀏覽代碼

Remove save extension check for images because it can cause problems when
the extension is not save and the image url points to the url base address.
If the server uses session trans_sid then somehow the session is destroyed
because of the automatic ?SID=session_id_string.
At least that's what I think what happens.

stekkel 23 年之前
父節點
當前提交
b3bd69dc5d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      functions/mime.php

+ 2 - 2
functions/mime.php

@@ -626,9 +626,9 @@ function find_ent_id($id, $message) {
             $ret = find_ent_id($id, $message->entities[$i]);
         } else {
             if (strcasecmp($message->entities[$i]->header->id, $id) == 0) {
-                if (sq_check_save_extension($message->entities[$i])) {
+//                if (sq_check_save_extension($message->entities[$i])) {
                     return $message->entities[$i]->entity_id;
-                } 
+//                } 
             }
         }
     }