From: Robin Appelman Date: Mon, 13 Jun 2011 23:11:49 +0000 (+0200) Subject: store numbers as strings to prevent errors with numeric passwords X-Git-Tag: v3.0~267^2~530 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=00858efbe27be3e4e594a9eba40214f451188af5;p=nextcloud-server.git store numbers as strings to prevent errors with numeric passwords --- diff --git a/lib/config.php b/lib/config.php index 60c6739a3fe..cd18ddd499c 100644 --- a/lib/config.php +++ b/lib/config.php @@ -169,9 +169,6 @@ class OC_CONFIG{ $value = $value ? 'true' : 'false'; $content .= "\"$key\" => $value,\n"; } - elseif( is_numeric( $value )){ - $content .= "\"$key\" => $value,\n"; - } else{ $value = str_replace( "'", "\\'", $value ); $content .= "\"$key\" => '$value',\n";