Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
b3bd69dc5d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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;
-                } 
+//                } 
             }
         }
     }