fix clean() for arrays and user plugin list

master
Andrew Dolgov 3 years ago
parent 6e774a58fe
commit a544123b59

@ -950,7 +950,7 @@ class Pref_Prefs extends Handler_Protected {
foreach ($tmppluginhost->get_plugins() as $name => $plugin) {
$about = $plugin->about();
if ($about[3] ?? false) {
if ($about[3] ?? true) {
$checked = "";
$disabled = "";

@ -244,7 +244,7 @@
// this is used for user http parameters unless HTML code is actually needed
function clean($param) {
if (is_array($param)) {
return trim(array_map("strip_tags", $param));
return array_map("trim", array_map("strip_tags", $param));
} else if (is_string($param)) {
return trim(strip_tags($param));
} else {

Loading…
Cancel
Save