File hasChanged to$value = ereg_replace("[\r\n\t ]+",' ',$value);Am I on the right track?$value = preg_replace("/[\r\n\t ]+/",' ',$value);
Not getting any errors, but wanted to check before submitting a change to a mod.
File hasChanged to$value = ereg_replace("[\r\n\t ]+",' ',$value);Am I on the right track?$value = preg_replace("/[\r\n\t ]+/",' ',$value);
Not getting any errors, but wanted to check before submitting a change to a mod.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
It looks correct to me.
See my blog post from last week: http://www.zen-cart.com/entry.php?2-...use-on-PHP-5-3
.
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.
Yep, saw the blog when it was posted but the example was a little different. Was having no errors in testing but thought I'd throw it out before posting the change.
Great info DrByte!
THANX
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
And thanx to Glenn for taking a look.
Another check to verify I'm reading correctly....in .js would becomesplit('|'),0,{})Or am I in the wrong ballpark?explode('|'),0,{})
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
If that's truly javascript and not PHP then there probably is no need to change it.
.
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.
It's at the end of a compressed .js file so I'm not really able to tell. I'll defer to no change for now.
THANX again.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
If it's a .js file then it's javascript, not PHP so no worries about PHP5.3 for that one.
Bookmarks