Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reverting change made in [7cde309]. Readding trim() to fix issues on …
…windows. Updating tests so they continue to pass on macos. Fixes #769
  • Loading branch information
markstory committed May 30, 2010
1 parent 907af96 commit 07948a7
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 @@ -192,7 +192,7 @@ 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 @@ -115,7 +115,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 07948a7

Please sign in to comment.