diff --git a/lib/config.php b/lib/config.php index 9279549b1b..65f9fdc06b 100644 --- a/lib/config.php +++ b/lib/config.php @@ -152,23 +152,12 @@ class OC_Config{ * * Saves the config to the config file. * - * Known flaws: Strings are not escaped properly */ public static function writeData(){ // Create a php file ... - $content = " $value ){ - if( is_bool( $value )){ - $value = $value ? 'true' : 'false'; - $content .= "\"$key\" => $value,\n"; - } - else{ - $value = str_replace( "'", "\\'", $value ); - $content .= "\"$key\" => '$value',\n"; - } - } - $content .= ");\n?>\n"; + $content = "\n"; $filename = OC::$SERVERROOT."/config/config.php"; // Write the file