Commits

Asher Baker committed 940715b

Make cat command binary safe.

  • Participants
  • Parent commits 656033c

Comments (0)

Files changed (1)

libhg/Command/Cat/Cmd.php

 	 * @return libhg_Command_Cat_Result
 	 */
 	public function evaluate(libhg_Stream_Readable $reader, libhg_Stream_Writable $writer, libhg_Repository_Interface $repo) {
-		$text = trim($reader->readString(libhg_Stream::CHANNEL_OUTPUT));
+		$text = $reader->readString(libhg_Stream::CHANNEL_OUTPUT);
 		$code = $reader->readReturnValue();
 
 		// output was redirected into a file