[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] guard against Text field length string function calls against nulls
"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <69317f9dd1be_2a17c8c0878a8@gitlab-sidekiq-low-urgency-cpu-bound-v2-749bb7fd7d-pl6b9.mail> |
Victor Emanouilov pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
3fa8c5f9 by Victor Emanouilov at 2025-12-04T14:33:21+02:00
[FIX] guard against Text field length string function calls against nulls
- - - - -
1 changed file:
- lib/core/Tracker/Field/Text.php
Changes:
=====================================
lib/core/Tracker/Field/Text.php
=====================================
@@ -243,7 +243,7 @@ class Tracker_Field_Text extends \Tracker\Field\AbstractItemField implements \Tr
{
$length = $this->getOption('max');
- if ($length) {
+ if ($length && ! is_null($value)) {
$f_len = function_exists('mb_strlen') ? 'mb_strlen' : 'strlen';
$f_substr = function_exists('mb_substr') ? 'mb_substr' : 'substr';
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3fa8c5f9097fe1a3d94c4522424a5c97543ebcdb
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3fa8c5f9097fe1a3d94c4522424a5c97543ebcdb
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs