Banshee
the secure PHP framework

Forum

Internal errors when sending Contact

Samiux
11 May 2010, 12:50
Hiawatha version: 7.2
Operating System: Ubuntu Server 10.04 LTS
Banshee version: 1.7

When I try to send message via "Contact" module, the following "Internal errors" message appears :

Internal errors
Function eregi() is deprecated in /var/banshee/libraries/security.php on line 96.
Function eregi() is deprecated in /var/banshee/libraries/email.php on line 44.
Function eregi() is deprecated in /var/banshee/libraries/email.php on line 44.
Function eregi() is deprecated in /var/banshee/libraries/email.php on line 44.


My webmaster's email format in website.conf is :
myname.mygivenname@gmail.com

The sender's email format is :
sendername@gmail.com

Any idea?
Hugo Leisink
11 May 2010, 13:23
Are you using PHP 5.3?
Samiux
11 May 2010, 13:39
Yes, I am using PHP 5.3.2 which is equipped by Ubuntu 10.04 LTS.
Hugo Leisink
11 May 2010, 13:47
I wasn't aware that eregi() is a depricated function. I've fixed security.php. Until the next release, you can download the fixed version here:

http://www.banshee-php.org/security.php.txt
Samiux
11 May 2010, 14:25
Thank you.

However, the /var/banshee/libraries/email.php at line 44 also need to apply the change as at security.php.

After changing at email.php and security.php, no error message is produced.

For your information, please.
Hugo Leisink
11 May 2010, 14:31
True, I also noticed it. But I thought you would be smart enough to figure that out for yourself