Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Security checkValid...
 
Notifications
Clear all

Security checkValidDateTime

2 Posts
2 Users
0 Reactions
2,113 Views
(@antonio-grr)
Posts: 84
Active Member
Topic starter
 
[#3994]

Hi,
in checkValidDateTime of Security the code

if ($len 10

should be modified as

if ($len 10

or the last else will be verified also when len < 10

If you try to validate a datetime having len < 5 you will try tp split a null datetime ...

I think you could better change each
$datetime = null;
with a
return null;
so avoiding processing wrong cases.
Best regards.


 
Posted : 10 Jan 2017 10H30
(@babynus)
Posts: 14952
Member Admin
 

You'r right, there is an else missing.
It will be included in next patch.
This should not be big issue except possibly for import, as dates are formatted in date fields.

Improvement on datetime=null; will also be included.

Thanks for reporting.


 
Posted : 10 Jan 2017 22H56
Share:

Scroll to Top