From: <var...@us...> - 2021-10-06 10:59:51
|
Revision: 10618 http://sourceforge.net/p/phpwiki/code/10618 Author: vargenau Date: 2021-10-06 10:59:50 +0000 (Wed, 06 Oct 2021) Log Message: ----------- lib/WikiPluginCached.php: check plugin exists Modified Paths: -------------- trunk/lib/WikiPluginCached.php Modified: trunk/lib/WikiPluginCached.php =================================================================== --- trunk/lib/WikiPluginCached.php 2021-10-06 09:17:41 UTC (rev 10617) +++ trunk/lib/WikiPluginCached.php 2021-10-06 10:59:50 UTC (rev 10618) @@ -846,6 +846,9 @@ $loader = new WikiPluginLoader(); $plugin = $loader->getPlugin($pluginname); + if (!$plugin) { + return false; + } // cache empty, but image maps have to be created _inline_ // so ask user to reload wiki page instead @@ -854,10 +857,9 @@ $this->printError($errorformat, $errortext); } - if (!$this->produceImage($content, $plugin, $dbi, $argarray, - $request, $errorformat) - ) + if (!$this->produceImage($content, $plugin, $dbi, $argarray, $request, $errorformat)) { return false; + } $expire = $plugin->getExpire($dbi, $argarray, $request); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |