Non-ascii characters caused problems with SVN function and were replaced
authorcentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 25 Jan 2002 09:28:29 +0000 (09:28 +0000)
committercentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 25 Jan 2002 09:28:29 +0000 (09:28 +0000)
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.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2234 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index 4cc1ccaa11c9c72c3b3dc8a9b9b7b9f3eae4b65b..b050533c4ff3f9a51208f43200dc3f62a045cf9e 100644 (file)
@@ -453,7 +453,11 @@ function mime_print_body_lines ($imap_stream, $id, $ent_id, $encoding) {
     $sid = sqimap_session_id();
     // Don't kill the connection if the browser is over a dialup
     // 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");
     $cnt = 0;