]> git.mxchange.org Git - friendica.git/commitdiff
When comparing config values, use strict string comparison
authorMatthew Exon <git.mexon@spamgourmet.com>
Sat, 1 May 2021 19:46:21 +0000 (21:46 +0200)
committerMatthew Exon <git.mexon@spamgourmet.com>
Sat, 1 May 2021 19:46:30 +0000 (21:46 +0200)
src/Console/Config.php

index a97574c976056de1a0b8f64011d101a5077f4cd0..3c775d43292053a58cc7ba7e580b249a3ab1584b 100644 (file)
@@ -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.");
                        }