Skip to content
This repository
Browse code

Removing trim() that was performed when reading a file with a lock() …

…enabled. This was causing a failure in php5.
  • Loading branch information...
commit 7cde3094f0c741abbe6b0b14d8894da343c9bf7b 1 parent 25a6a3c
Mark Story authored May 29, 2010

Showing 1 changed file with 0 additions and 1 deletion. Show diff stats Hide diff stats

  1. 1  cake/libs/file.php
1  cake/libs/file.php
@@ -185,7 +185,6 @@ function read($bytes = false, $mode = 'rb', $force = false) {
185 185
 		while (!feof($this->handle)) {
186 186
 			$data .= fgets($this->handle, 4096);
187 187
 		}
188  
-		$data = trim($data);
189 188
 
190 189
 		if ($this->lock !== null) {
191 190
 			flock($this->handle, LOCK_UN);

0 notes on commit 7cde309

Please sign in to comment.
Something went wrong with that request. Please try again.