Forums / Bug Reports / [Fixed v1.5.1] Additional check required in includes/functions/functions_email.php

[Fixed v1.5.1] Additional check required in includes/functions/functions_email.php

Locked

Views: 2,660

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
18 Mar 2012, 4:36 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

[Fixed v1.5.1] Additional check required in includes/functions/functions_email.php

line 115 needs to check if EMAIL_DISCLAIMER is empty, i.e.

        if (EMAIL_DISCLAIMER != '' && !strstr($email_text, sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS)) && $to_email_address != STORE_OWNER_EMAIL_ADDRESS && !defined('EMAIL_DISCLAIMER_NEW_CUSTOMER')) $email_text .= "\n" . sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS);

without this you get

[18-Mar-2012 03:20:04] PHP Warning: strstr() [<a href='function.strstr'>function.strstr</a>]: Empty delimiter in /var/www/vhosts/pier1.meyers.com/httpdocs/includes/functions/functions_email.php on line 115

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 Sep 2012, 3:11 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Fixed v1.5.1] Additional check required in includes/functions/functions_email.php

Fixed v1.5.1

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.