[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Wikiplugin addtogooglecal: Prevent null value warnings in strip_tags()

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69482d1df1652_2a17fbb0527c@gitlab-sidekiq-low-urgency-cpu-bound-v2-b6f479f57-c6t7n.mail>

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
6a81b154 by David Maene at 2025-12-21T17:15:14+00:00
[FIX] Wikiplugin addtogooglecal: Prevent null value warnings in strip_tags()
---
* [FIX] wikiplugin_addtogooglecal.php: Prevent null value warnings in strip_tags()

See merge request tikiwiki/tiki!9137

- - - - -


1 changed file:

- lib/wiki-plugins/wikiplugin_addtogooglecal.php


Changes:

=====================================
lib/wiki-plugins/wikiplugin_addtogooglecal.php
=====================================
@@ -70,7 +70,7 @@ function wikiplugin_addtogooglecal($data, $params)
     $gcal_action = 'TEMPLATE';
     $gcal_text = urlencode(str_replace(["\n","\r"], ['',''], strip_tags($calitem['parsedName'])));
     $gcal_details = urlencode(str_replace(["\n","\r"], ['',''], $calitem['parsed']));
-    $gcal_location = urlencode(str_replace(["\n","\r"], ['',''], strip_tags($calitem['locationName'])));
+    $gcal_location = urlencode(str_replace(["\n","\r"], ['',''], strip_tags($calitem['locationName'] ?? '')));
     // Google requires date to be formatted in UTC
     $old_tz = date_default_timezone_get();
     date_default_timezone_set('UTC');



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

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