Monday, August 27, 2007

Uebimiau Bug: class.uebimiau.php on line 467

See: http://www.uebimiau.org/

Migrating the webfrontend (uebimiau version 2.7.2, is a old release) from an old suse to debian with php5 caused one error:

Site: https://***/download.php?folder=inbox&ix=0&mnum=&bound=FF0tLS0tLS0tLS0tLFFFFFA0MDUwNjAyMDAwNjA2MDIwFFFFMDU=&part=1&sid={46D2FFFF54623-46D2FCE259441-FFFF232418}&tid=0&lid=1

Warning: Header may not contain more than a single header, new line detected. in /Data/DataInet/webmail.t-p.com/inc/class.uebimiau.php on line 467

 

Solve it this way

$ diff class.uebimiau.php.ori class.uebimiau.php
466,467c466,467
<                       header(“Content-Type: $content_type; name=\”$filename\”\r\n”
<                       .”Content-Length: $filesize\r\n”);

>                       header(“Content-Type: $content_type; name=\”$filename\”");
>                       header(“Content-Length: $filesize”);
469c469
<                       header(“Content-Disposition: $cdisp; filename=\”$filename\”\r\n”);

>                       header(“Content-Disposition: $cdisp; filename=\”$filename\”");
680c680
< ?>
\ No newline at end of file

> ?>

I dislike php 

Posted by schmidi2 at 17:50:14 | Permalink | No Comments »

Sunday, July 29, 2007

Uebimiau Bug: folders.php on line 157

See: http://www.uebimiau.org/

Migrating the webfrontend (uebimiau version 2.7.2, is a old release) from an old suse to debian with php5 caused one error:

Site: https://***/folders.php?folder=inbox&sid={****}&tid=0&lid=8

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /Data/DataInet/***/folders.php on line 157

 

Solve it this way

$ diff folders.php.ori folders.php
155,156c155,160
<
< $umFolderList = array_merge($system, $personal);

>
> if(isset($personal)) {
> $umFolderList = array_merge($system, $personal);
> } else {
> $umFolderList = array_merge($system);
> }

Posted by schmidi2 at 15:09:40 | Permalink | No Comments »