From: Matthew Exon Date: Sat, 1 May 2021 19:46:21 +0000 (+0200) Subject: When comparing config values, use strict string comparison X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=18762c8e6e88e2e3089cb5b30d6f2c39b6d42a12;p=friendica.git When comparing config values, use strict string comparison --- diff --git a/src/Console/Config.php b/src/Console/Config.php index a97574c976..3c775d4329 100644 --- a/src/Console/Config.php +++ b/src/Console/Config.php @@ -128,7 +128,7 @@ HELP; throw new RuntimeException("$cat.$key is an array and can't be set using this command."); } - if ($this->config->get($cat, $key) == $value) { + if ($this->config->get($cat, $key) === $value) { throw new RuntimeException("$cat.$key already set to $value."); }