SquirrelMail  
Donations
News
About
Support
Screen shots
Download
Plugins
Documentation
Sponsors
Bounties













Security Notice
Phishing campain
Version 1.4.15
Security Upgrade

While using Apache 2.x with PHP4.2.x, a number of issues have been seen. Some of these are:

  • Plugins fail to load
  • Error "cannot load ../data/default_pref" (see note #1 for fix)
  • Inbox does not appear once logged in; browser loads perpetually (see note #2 for fix)
  • Themes not being applied even though change is stored

This issue seems to have come about due to Apache 2.x and PHP4.2.x working together and breaking relative paths (ie ../filename instead of /my/path/filename). This bug was reported at php.net and can be seen at the urls:

The suggested course of action is to upgrade your version of PHP to PHP4-STABLE-200210011500 or higher, or consider changing Apache back to the 1.3 branch.

  1. This error can be avoided by setting you data directory to the absolute path (ie ../data/ --> /usr/local/www/squirrelmail/data/)
  2. As an extension to this, this can be fixed (*Warning only semi-tested*) by running the following command at the ...\squirrelmail\src directory: (I suggest cut-and-paste for this)

NOTE: Adjust this for your path to squirrelmail using \/ in place of /'s. That's a backslash then forwardslash - not a V)

perl -pe "s/\'\.\.\//\'\/usr\/local\/www\/squirrelmail\//;" -i *php
© 1999-2010 by The SquirrelMail Project Team