[CentOS-devel] https://bugzilla.redhat.com/show_bug.cgi?id=237136

John Summerfield

debian at herakles.homelinux.org
Fri Dec 5 03:27:06 UTC 2008


The above, reported against FC4, occurs in current CentOS5.

I tried to sign up for bugz, can't read the <expletives deleted> capcha 
image.

[root at tpMail httpd]# rpm -q squirrelmail
squirrelmail-1.4.8-4.0.1.el5.centos.2
[root at tpMail httpd]# rpm -qi squirrelmail
Name        : squirrelmail                 Relocations: (not relocatable)
Version     : 1.4.8                             Vendor: CentOS
Release     : 4.0.1.el5.centos.2            Build Date: Sun 18 Nov 2007 
12:28:32 PM WST
Install Date: Wed 23 Apr 2008 02:50:21 PM WST      Build Host: builder6
Group       : Applications/Internet         Source RPM: 
squirrelmail-1.4.8-4.0.1.el5.centos.2.src.rpm
Size        : 14386835                         License: GPL
Signature   : DSA/SHA1, Wed 21 Nov 2007 04:16:30 AM WST, Key ID 
a8a447dce8562897
URL         : http://www.squirrelmail.org/
Summary     : SquirrelMail webmail client
Description :
SquirrelMail is a standards-based webmail package written in PHP4. It
includes built-in pure PHP support for the IMAP and SMTP protocols, and
all pages render in pure HTML 4.0 (with no Javascript) for maximum
compatibility across browsers.  It has very few requirements and is very
easy to configure and install. SquirrelMail has all the functionality
you would want from an email client, including strong MIME support,
address books, and folder manipulation.
[root at tpMail httpd]# tail error_log
[Fri Dec 05 11:56:18 2008] [error] [client 203.34.16.107] PHP Notice: 
Undefined variable: body_message in 
/usr/share/squirrelmail/functions/mime.php on line 316, referer: 
http://mail.terad.net/webmail/src/right_main.php?mailbox=INBOX&sort=0&startMessage=1
[Fri Dec 05 11:56:18 2008] [error] [client 203.34.16.107] PHP Notice: 
Trying to get property of non-object in 
/usr/share/squirrelmail/functions/mime.php on line 316, referer: 
http://mail.terad.net/webmail/src/right_main.php?mailbox=INBOX&sort=0&startMessage=1
[Fri Dec 05 11:56:18 2008] [error] [client 203.34.16.107] PHP Fatal 
error:  Call to a member function getParameter() on a non-object in 
/usr/share/squirrelmail/functions/mime.php on line 316, referer: 
http://mail.terad.net/webmail/src/right_main.php?mailbox=INBOX&sort=0&startMessage=1
[Fri Dec 05 11:57:36 2008] [error] [client 203.34.16.107] Directory 
index forbidden by Options directive: /var/www/html/
[Fri Dec 05 11:58:08 2008] [error] [client 58.6.192.22] script 
'/var/www/html/index.php' not found or unable to stat, referer: 
http://mail.terad.net/
[Fri Dec 05 11:58:33 2008] [error] [client 58.6.192.22] PHP Notice: 
Undefined variable: body_message in 
/usr/share/squirrelmail/functions/mime.php on line 316, referer: 
http://mail.terad.net/webmail/src/right_main.php
[Fri Dec 05 11:58:33 2008] [error] [client 58.6.192.22] PHP Notice: 
Trying to get property of non-object in 
/usr/share/squirrelmail/functions/mime.php on line 316, referer: 
http://mail.terad.net/webmail/src/right_main.php
[Fri Dec 05 11:58:33 2008] [error] [client 58.6.192.22] PHP Fatal error: 
  Call to a member function getParameter() on a non-object in 
/usr/share/squirrelmail/functions/mime.php on line 316, referer: 
http://mail.terad.net/webmail/src/right_main.php


There's a bug in  /usr/share/squirrelmail/functions/mime.php here too, 
fixed by the insertion of line 316.
  316 $charset = strtolower($body_message->header->getParameter('charset'));
  317     if (!$charset_converted) {
  318         if ($charset == 'iso-2022-jp' || $charset == 'shift_jis' 
|| $charset == 'euc-jp' ||
  319            ($squirrelmail_language == 'ja_JP' &&
  320            ($charset == 'utf-8' || $charset == '' || $charset == 
'us-ascii'))) {
  321            $body = $languages['ja_JP']['XTRA_CODE']('decode', $body);
  322            $charset_converted = true;
  323         }
  324     }


-- 

Cheers
John

-- spambait
1aaaaaaa at coco.merseine.nu  Z1aaaaaaa at coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)



More information about the CentOS-devel mailing list