Last edited by lat9; 21 Apr 2025 at 08:13 PM. Reason: redacted unwanted information
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.
That redacted stuff is an old javascript injection via the validation that is at minimum 3 years old, and the domain they were posting to has been offline at least that long
Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!
Zen Cart 2.1.0
PHP 8.3
Bootstrap 3.7.4
PayPal RESTful 1.1.0
The credit card expiration field, the month of March is there twice, and there is## no expiration option for the month of February.
![]()
PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
**I answer questions in the forum, private messages are not conducive to a helpful community.
I found the origin of this problem, and it is not ZcDate class, but the way it is used. It is generally called like this:
Where $i is the month number. Day and year are not given as parameter which means the actual date day and year are used.PHP Code:
$zcDate->output('%b', mktime(0, 0, 0, $i)));
Problem is when actual date day is higher than the last day of a month. For PHP it is next month, like 30th of February is actually 2nd of March.
This bug only appears at the end of the month, from 29 to 31! The 31th of the month is worse case where all month less than 31 days (Feb., April, June,Sept. and Nov.) will be set to next month...
Solution is to call zcDate class output like this:
There might be other places in ZC where this needs to be modified...PHP Code:
$zcDate->output('%b', mktime(0, 0, 0, $i,1)));
For this plugin, file paypalr.php needs to be modified on lines 782 and 1269. Line 874 might need it too, not sure yet.
No modification needed on line 874!
PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
**I answer questions in the forum, private messages are not conducive to a helpful community.
Bookmarks