The < character is probably being treated as the beginning of an HTML tag, and since HTML tags are stripped out of text-only emails (for safety and appearance reasons), that's likely why the problem is occurring for you.
Glad you have a workaround.
The < character is probably being treated as the beginning of an HTML tag, and since HTML tags are stripped out of text-only emails (for safety and appearance reasons), that's likely why the problem is occurring for you.
Glad you have a workaround.
.
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.
Yes thanks! I guess this should be reported as a bug since, if the character is encountered as part of a static description field, it's obviously not an HTML tag and should be preserved for the text version.
Cheers
Cliff
We'll look into it.
However, HTML tags *do* (unfortunately) get used in various description fields, making it a little tough to apply simple generic rules to data parsing. Especially when the 'value' could be a text field that was entered by the customer ... which then brings security risks if not properly sanitized.
.
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.
Puzzling. I've tested the use of "Child < 12" as the option value, and can't reproduce any problems with emails getting truncated.
.
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.
Dear Dr Byte
I can now confirm that it ONLY happens if this exact condition is met : "Child <12" i.e. if there is NO SPACE between the "<" and the next bit of text! How funny!!
I made a brand new test install and tested "Child < 12" which worked fine, and then "Child <12" which malformed the email.
Can you work that one out? :)
Kind regards
Cliff
Hah! I also notice that if you should enter "Child <Twelve" for example, then it totally ignores the "<Twelve" bit in the description in the Admin panel, and in the shop it shows "[Child <Twelve"]" (i.e. followed by a quote mark)
See image below:
Interesting!
What happens if you replace the "<" with "<" instead?
.
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.
Dr Byte
Just tested that, and whilst it looks correct on the option value (shows Child <12", when it gets to the checkout cart, it shows as "Child <12" and the email is once again malformed.
Cheers
Cliff
What exactly do you mean by "the email is malformed"? You mean it skips a section? Or do you mean the < shows up in the email and makes it look funny?
.
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.
I showed in my first post exactly what happens. The email terminates after the "Child <12" product line is encountered and it skips the rest of the email - leaving out the order totals, payment method, shipping details etc.. here is the example from the first post again:
"-----Original Message-----
From: Elmbridge Choir Ticket Shop [mailto:tickets@*****.co.uk]
Sent: 05 July 2009 07:59
To: [email protected]
Subject: [NEW ORDER] Order Confirmation No: 111
AuthCode: TransID: 71P1129940060464T
Order Confirmation from Elmbridge Choir Ticket Shop
CUSTOMER NAME
Thanks for shopping with us today!
The following are the details of your order.
------------------------------------------------------
Order Number: 111
Date Ordered: Sunday 05 July, 2009
Detailed Invoice:
http://[removed]
Products
------------------------------------------------------
2 x Summer Picnic Concert - Molesey Regatta 19 July 2009 = £16.00
Ticket Type ADULT
2 x Summer Picnic Concert - Molesey Regatta 19 July 2009 = £8.00
[FONT="] Ticket Type CHILD"[/FONT]
> It terminates here and only adds the " [FONT="]This email address was given to us by you or by one of our customers..." bit.
It also does the same with the email that goes to the customer.
Cheers
Cliff
[/FONT]
Last edited by cliffvt; 11 Aug 2009 at 11:33 PM.