From eabae9bed4ebd6bbfc5ea69e4f6293cdf13b8bf4 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 26 Apr 2016 09:15:38 +0100 Subject: [PATCH] Supress saving error log info and showing message Temp measure till we know UTF8 BOM issue is fixed --- lib/file-control-xhr.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/file-control-xhr.php b/lib/file-control-xhr.php index b43381f..0e8ab37 100644 --- a/lib/file-control-xhr.php +++ b/lib/file-control-xhr.php @@ -356,13 +356,13 @@ if (!$error && $_GET['action']=="save") { } // Log info in a file should there be a difference in char counts - $docLines = explode("\n",$contents); - if (strlen($contents)-count($docLines)+1 != $_GET['charCount']) { - $doNext .= 'top.ICEcoder.message("Sorry, there was a size difference reported between what you see and what has been saved. Please check your file to see if the change has been applied properly.\\\n\\\nIf not, please send tmp/save-error-log.php to info@icecoder.net along. All files sent to us will be dealt with confidentially and deleted after analysis.");'; - $fh = fopen(dirname(__FILE__)."/../tmp/save-error-log.php", 'a'); - fwrite($fh, "".PHP_EOL); - fclose($fh); - } + // $docLines = explode("\n",$contents); + // if (strlen($contents)-count($docLines)+1 != $_GET['charCount']) { + // $doNext .= 'top.ICEcoder.message("Sorry, there was a size difference reported between what you see and what has been saved. Please check your file to see if the change has been applied properly.\\\n\\\nIf not, please send tmp/save-error-log.php to info@icecoder.net along. All files sent to us will be dealt with confidentially and deleted after analysis.");'; + // $fh = fopen(dirname(__FILE__)."/../tmp/save-error-log.php", 'a'); + // fwrite($fh, "".PHP_EOL); + // fclose($fh); + // } // Save a version controlled backup source of the file if ($ICEcoder["backupsKept"]) {