[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] AlchemyLib: Passing null to parameter #2 ($subject) of type string

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69b20e61513ea_3b47c3e78964df@gitlab-sidekiq-low-urgency-cpu-bound-v2-6d4b95ff96-6r97z.mail>

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


Commits:
62cb1ce0 by ushindi bienvenu at 2026-03-12T00:45:37+00:00
[FIX] AlchemyLib: Passing null to parameter #2 ($subject) of type string
---
* [FIX] AlchemyLib: Passing null to parameter #2 ($subject) of type string

See merge request tikiwiki/tiki!8906

- - - - -


1 changed file:

- lib/Alchemy/AlchemyLib.php


Changes:

=====================================
lib/Alchemy/AlchemyLib.php
=====================================
@@ -90,6 +90,11 @@ class AlchemyLib
         }
 
         $commandOutput = shell_exec('identify -list policy');
+
+        if ($commandOutput === null) {
+            throw new \Exception(tr('Unable to execute "identify" command. Make sure ImageMagick is installed'));
+        }
+
         preg_match("/Path: .*ImageMagick.*policy.xml.*rights:(.+)pattern: PDF/s", $commandOutput, $matches);
 
         if (! isset($matches[1])) {



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

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