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

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:32 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 da9cd0d3443c68c2edeacbdc605db11bc90cff1a
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