There is bug sometimes with altcha causing "unverified" on dr() function within altcha.js (media\vendor\altcha\js)
Before
function dr(r) { const u = new URLSearchParams(r.split("?")?.[1]), v = u.get("expires") || u.get("expire"); if (v) { const _ = new Date(+v * 1e3), g = isNaN(_.getTime()) ? 0 : _.getTime() - Date.now(); g > 0 && An(g); } else we && (clearTimeout(we), we = null); }
After
I have fixed with following code; that checks if r is actually defined.
function dr(r) { let u; let v = false; if (typeof (r) !== 'undefined') { u = new URLSearchParams(r.split("?")?.[1]), v = u.get("expires") || u.get("expire"); } if (v) { const _ = new Date(+v * 1e3), g = isNaN(_.getTime()) ? 0 : _.getTime() - Date.now(); g > 0 && An(g); } else we && (clearTimeout(we), we = null); }
6.1.2
Verified
Unverified
No response
No response
| Labels |
Added:
No Code Attached Yet
bug
|
||
This is a vendor file so we dont edit it ourselves :(
The version of altcha uses in Joomla 6.1.2 is 2.3.0 but the current release is 3.2.1 - maybe the maintainers will update altcha for the release of joomla 6.2