[TikiWiki-commits] [Git][tikiwiki/tiki][tiki-fix-admingroups-tpl] [FIX] Sefurl.php: ensure non-null source value is provided in handle method

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <691e45bc3acd6_2a17f1b0821c5@gitlab-sidekiq-low-urgency-cpu-bound-v2-6df8d84988-4lhpk.mail>

Sammy Ndabo pushed to branch tiki-fix-admingroups-tpl at Tiki Wiki CMS Groupware / Tiki


Commits:
d0797673 by Sammy Ndabo at 2025-11-20T01:33:10+03:00
[FIX] Sefurl.php: ensure non-null source value is provided in handle method

- - - - -


1 changed file:

- lib/smarty_tiki/Modifier/Sefurl.php


Changes:

=====================================
lib/smarty_tiki/Modifier/Sefurl.php
=====================================
@@ -11,6 +11,11 @@ class Sefurl
 {
     public function handle($source, $type = 'wiki', $with_next = '', $all_langs = '', $with_title = 'y', $title = '')
     {
+
+        if ($source === null) {
+            throw new \InvalidArgumentException('sefurl modifier requires a non-null source value.');
+        }
+
         global $prefs;
         $wikilib = \TikiLib::lib('wiki');
         $tikilib = \TikiLib::lib('tiki');



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

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