From: <var...@us...> - 2021-02-22 14:14:13
|
Revision: 10252 http://sourceforge.net/p/phpwiki/code/10252 Author: vargenau Date: 2021-02-22 14:14:10 +0000 (Mon, 22 Feb 2021) Log Message: ----------- plugin ExternalSearch: better test boolean argument "debug" Modified Paths: -------------- trunk/lib/plugin/ExternalSearch.php Modified: trunk/lib/plugin/ExternalSearch.php =================================================================== --- trunk/lib/plugin/ExternalSearch.php 2021-02-22 14:08:53 UTC (rev 10251) +++ trunk/lib/plugin/ExternalSearch.php 2021-02-22 14:14:10 UTC (rev 10252) @@ -92,6 +92,14 @@ extract($args); + if (($debug == '0') || ($debug == 'false')) { + $debug = false; + } elseif (($debug == '1') || ($debug == 'true')) { + $debug = true; + } else { + return $this->error(sprintf(_("Argument '%s' must be a boolean"), "debug")); + } + $posted = $GLOBALS['HTTP_POST_VARS']; if (in_array('url', array_keys($posted))) { $s = $posted['s']; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |