]> source.dussan.org Git - nextcloud-server.git/commitdiff
store numbers as strings to prevent errors with numeric passwords
authorRobin Appelman <icewind1991@gmail.com>
Mon, 13 Jun 2011 23:11:49 +0000 (01:11 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Mon, 13 Jun 2011 23:20:41 +0000 (01:20 +0200)
lib/config.php

index 60c6739a3fe6abc7d7efbeb49cd565daffc37beb..cd18ddd499c3bbe94dce296cc3aca1e8766b92a5 100644 (file)
@@ -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";