Index: include/file_operations.php diff -u include/file_operations.php:1.72 include/file_operations.php:1.72.2.1 --- include/file_operations.php:1.72 Fri Dec 5 18:10:48 2008 +++ include/file_operations.php Mon Jan 19 11:42:16 2009 @@ -167,7 +167,7 @@ $top_message["content"] = func_get_langvar_by_name("msg_err_file_wrong"); $top_message["type"] = "E"; - } elseif ($fw = func_fopen($path, "w")) { + } elseif ($fw = func_fopen($path, "w", true)) { # Success $filebody = str_replace("\r", '', $filebody); fputs($fw, stripslashes($filebody)); @@ -366,7 +366,7 @@ if (is_writable($root_dir.$file_to_restore) && is_readable($root_dir.$file_to_restore)) { $file_strings = file($root_dir.$file_to_restore); - $fp = func_fopen($root_dir.$file_to_restore, "w"); + $fp = func_fopen($root_dir.$file_to_restore, "w", true); # # Patching head.tpl to disable languages