[Plugin: Fast Secure Contact Form] Minor Coding Mod Request
-
Hello,
I have a minor coding Mod request. BPS Pro is using .htaccess ErrorDocument to send hackers to a 403 BlackHole template and this is generating repeated PHP Errors in the php error log due to a session_start issue. This is only a PHP Warning message so no big deal, but I would like to request a suppression for these 2 functions below. Thanks.
[18-Dec-2011 21:13:49] PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/xxxxx/public_html/wp-content/plugins/bulletproof-security/403.php:6) in /home/xxxxx/public_html/wp-content/plugins/si-contact-form/si-contact-form.php on line 1674
Unmodified Code:
function si_contact_start_session() {
// a PHP session cookie is set so that the captcha can be remembered and function
// this has to be set before any header output
//echo “starting session ctf”;
// start cookie session, but do not start session if captcha is disabled in options
if( !isset( $_SESSION ) ) { // play nice with other plugins
session_cache_limiter (‘private, must-revalidate’);
session_start();
//echo “session started ctf”;
}
} // end function si_contact_start_sessionRequested Modification:
function si_contact_start_session() {
// a PHP session cookie is set so that the captcha can be remembered and function
// this has to be set before any header output
//echo “starting session ctf”;
// start cookie session, but do not start session if captcha is disabled in options
if( !isset( $_SESSION ) ) { // play nice with other plugins
@session_cache_limiter (‘private, must-revalidate’);
@session_start();
//echo “session started ctf”;
}
} // end function si_contact_start_sessionhttps://www.ads-software.com/extend/plugins/si-contact-form/
- The topic ‘[Plugin: Fast Secure Contact Form] Minor Coding Mod Request’ is closed to new replies.