Issue 292 in wolfcms: Email.php doesn't check php safe mode status unless passed options

3 views
Skip to first unread message

wol...@googlecode.com

unread,
Jan 3, 2011, 11:36:57 AM1/3/11
to wolfcms...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

wol...@googlecode.com

unread,
Jan 3, 2011, 11:41:02 AM1/3/11
to wolfcms...@googlegroups.com

Comment #1 on 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

I used the wrong account to sumbit, please reply with questions to shannon
{at} brooks {remove} works {.} com.

Reply all
Reply to author
Forward
0 new messages