[Pkg-owncloud-commits] [php-sabre-vobject] 27/43: Replace <feff> by chr()s.

David Prévot taffit at moszumanska.debian.org
Sat Jan 10 14:20:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 628228ad92ff9e2ceb43df89f4d5ae8b98faf76b
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Wed Jan 7 10:32:26 2015 +0100

    Replace <feff> by chr()s.
    
    Easier to understand I think.
---
 tests/VObject/ReaderTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/VObject/ReaderTest.php b/tests/VObject/ReaderTest.php
index 2801ee7..f530d81 100644
--- a/tests/VObject/ReaderTest.php
+++ b/tests/VObject/ReaderTest.php
@@ -437,7 +437,7 @@ ICS;
 
     public function testReadBOM() {
 
-        $data = "BEGIN:VCALENDAR\r\nEND:VCALENDAR";
+        $data = chr(0xef) . chr(0xbb) . chr(0xbf) . "BEGIN:VCALENDAR\r\nEND:VCALENDAR";
         $result = Reader::read($data);
 
         $this->assertInstanceOf('Sabre\\VObject\\Component', $result);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list