Skip to content

Commit

Permalink
Reverting change made in [7cde309]. Readding trim() to fix issues on …
Browse files Browse the repository at this point in the history
…windows. Updating tests so they continue to pass on macos. Fixes #769
  • Loading branch information
markstory committed May 31, 2010
1 parent 22e942c commit ea2f032
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cake/libs/file.php
Expand Up @@ -186,7 +186,7 @@ public function read($bytes = false, $mode = 'rb', $force = false) {
if ($bytes === false) {
$this->close();
}
return $data;
return trim($data);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/file.test.php
Expand Up @@ -133,7 +133,7 @@ function testRead() {
$this->File->lock = true;
$result = $this->File->read();
$expecting = file_get_contents(__FILE__);
$this->assertEqual($result, $expecting);
$this->assertEqual($result, trim($expecting));
$this->File->lock = null;

$data = $expecting;
Expand Down

0 comments on commit ea2f032

Please sign in to comment.