[RCD] BUG: program/lib/Roundcube/rcube_imap.php on line 1845

Reindl Harald h.reindl at thelounge.net
Mon May 26 10:31:09 CEST 2014



Am 26.05.2014 08:24, schrieb A.L.E.C:
> On 05/25/2014 05:46 PM, Reindl Harald wrote:
>> to can do that i would need a better handling of that like
>> at least some code-snippet as follows:
> 
> Before the line with strtolower() add:
> 
> if (is_array($headers->ctype)) {
>     console($_SESSION['username'].":$folder:$uid");
>     console($headers);
> }
> 

i added that patch now to my RPM-Build

IMHO that should be part of the release because it's much
more helful than unspecific warnings and leads to find
the root cause

hopefully console() and $headers exists at that level :-)

[builduser at buildserver64:/rpmbuild/SOURCES]$ cat roundcubemail-str_to_lower_warning.patch
--- roundcubemail-1.0.1-dep-original/program/lib/Roundcube/rcube_imap.php       2014-05-09 16:09:02.000000000 +0200
+++ roundcubemail-1.0.1-dep-patched/program/lib/Roundcube/rcube_imap.php        2014-05-26 10:28:08.809852444 +0200
@@ -1841,8 +1841,13 @@
         */

         // regular part
-        $struct->ctype_primary = strtolower($part[0]);
-        $struct->ctype_secondary = strtolower($part[1]);
+        if(is_array($part[0]) || is_array($part[1]))
+        {
+         console($_SESSION['username'].":$folder:$uid");
+         console($headers);
+        }
+        $struct->ctype_primary = @strtolower($part[0]);
+        $struct->ctype_secondary = @strtolower($part[1]);
         $struct->mimetype = $struct->ctype_primary.'/'.$struct->ctype_secondary;

         // read content type parameters

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://lists.roundcube.net/pipermail/dev/attachments/20140526/b8638043/attachment.sig>


More information about the dev mailing list