[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [BP][FIX] DateTime: avoid validating invalid raw request values

"Landry Bitege \(@land-bit\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a04afa6aec70_372ec2f0469a4@gitlab-sidekiq-low-urgency-cpu-bound-v2-76fb78779f-s6k7l.mail>

Landry Bitege pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
33a15834 by Landry Bitege at 2026-05-13T18:59:06+02:00
[BP][FIX] DateTime: avoid validating invalid raw request values
---
* [FIX] DateTime: avoid validating invalid raw request values
---
* [FIX] DateTime: avoid validating invalid raw request values

See merge request tikiwiki/tiki!10117

(cherry picked from commit 3ffb14b148dcffc3541dcafdda0acc53fc846b35)

See merge request tikiwiki/tiki!10208

- - - - -


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/33a158345375cb7b18443f65b00578801a5cb019

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/33a158345375cb7b18443f65b00578801a5cb019
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.