Sensei
- Join Date:
- Jan 2004
- Posts:
- 63,513
- Plugin Contributions:
- 176
Quotes have issues affecting my product images [NOTE: magic_quotes_sybase issue]
Yes, I did notice.
I'm continuing discussion in this thread, because it contains relevant history, rather than a new post.
Using the very same product name and description as yourself, I cannot reproduce the problem on my own test servers (one of them using PHP v4.4.5 and MySQL 4.2.11-standard-log ... which makes configuration very similar to yours).
Your server's addslashes() function appears to be converting single-quotes to two single-quotes instead of a backslash and a single-quote.
There is a growing trend towards using '' instead of ' (considered to be "more portable" across database-engine choices, and safer in multi-byte server configurations), but that usually only happens by using the database-provided scripts for escaping content being prepared for insertion into the database.
I've been researching to find out whether/where addslashes() has been altered to produce '' instead of ' but haven't found it.
Hence the question about your PHP version.
.
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.