[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] DateTime: avoid validating invalid raw request values

"Bruno Kambere \(@kambereBr\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69fe11318afe7_38190528736ac@gitlab-sidekiq-low-urgency-cpu-bound-v2-5d74b6668-c568t.mail>

Bruno Kambere pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
3ffb14b1 by Landry Bitege at 2026-05-08T19:13:39+03:00
[FIX] DateTime: avoid validating invalid raw request values
---
* [FIX] DateTime: avoid validating invalid raw request values

See merge request tikiwiki/tiki!10117

- - - - -


1 changed file:

- lib/core/Tracker/Field/DateTime.php


Changes:

=====================================
lib/core/Tracker/Field/DateTime.php
=====================================
@@ -148,7 +148,7 @@ class Tracker_Field_DateTime extends \Tracker\Field\AbstractItemField implements
         } else {
             // This condition addresses the scenario where data is received from the API, and the timestamp value is provided in its raw form.
             $hasRawRequestValue = array_key_exists($ins_id, $requestData);
-            $value = $hasRawRequestValue
+            $value = ($hasRawRequestValue && is_numeric($requestData[$ins_id]))
                 ? $requestData[$ins_id]
                 : $this->getValue();
 



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3ffb14b148dcffc3541dcafdda0acc53fc846b35

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3ffb14b148dcffc3541dcafdda0acc53fc846b35
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.