فهرست منبع

Non-ascii characters caused problems with SVN function and were replaced
with a ? by SourceForge.net in your original log message, which follows:
check for safe_mode before set_time_limit.
this check was removed for reasons I don?t know,
but it is mandatory becaus it breaks attachment
download in installations with safe_mode.

centaurix 23 سال پیش
والد
کامیت
ecb3efd69c
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      functions/mime.php

+ 5 - 1
functions/mime.php

@@ -453,7 +453,11 @@ function mime_print_body_lines ($imap_stream, $id, $ent_id, $encoding) {
     $sid = sqimap_session_id();
     $sid = sqimap_session_id();
     // Don't kill the connection if the browser is over a dialup
     // Don't kill the connection if the browser is over a dialup
     // and it would take over 30 seconds to download it.
     // and it would take over 30 seconds to download it.
-    set_time_limit(0);
+
+    // don´t call set_time_limit in safe mode.
+    if (!ini_get("safe_mode")) {
+        set_time_limit(0);
+    }
     
     
     fputs ($imap_stream, "$sid FETCH $id BODY[$ent_id]\r\n");
     fputs ($imap_stream, "$sid FETCH $id BODY[$ent_id]\r\n");
     $cnt = 0;
     $cnt = 0;