New issue 292 by administ...@apps.gsnwgl.org: Email.php doesn't check php
safe mode status unless passed options
http://code.google.com/p/wolfcms/issues/detail?id=292
What steps will reproduce the problem?
1. Turn on safe mode/run on safe mode enabled system
2. Upload test.php to root of site
3. Open browser to http://site.tld/test.php
4. Get output "Warning: mail() [function.mail]: SAFE MODE Restriction in
effect. The fifth parameter is disabled in SAFE MODE in
/fX/site/public/wolf/helpers/Email.php on line 1024
What is the expected output? What do you see instead?
I expect to see an email arrive, none does.
What version of the product are you using? On what operating system?
0.7.2 on Linux
Please provide any additional information below.
A simple fix seems to be to remove the config count check in the class
__construct function so that the initialize function runs regardless of
whether options are passed or not. See the attached file for diff patch.
Attachments:
test.php 260 bytes
Email.php.patch 408 bytes
I used the wrong account to sumbit, please reply with questions to shannon
{at} brooks {remove} works {.} com.