Req #16637 [Opn->Fbk]: Does not handle Carriage Return (\r)

From: Date: Thu, 24 Sep 2009 14:20:20 +0000
Subject: Req #16637 [Opn->Fbk]: Does not handle Carriage Return (\r)
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1723@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16637&edit=1 ID: 16637 Updated by: till@php.net Reported By: tyler dot thackray at gmail dot com Summary: Does not handle Carriage Return (\r) -Status: Open +Status: Feedback Type: Feature/Change Request Package: File_IMC Operating System: Irrelevant Package Version: 0.4.0 PHP Version: Irrelevant -Assigned To: +Assigned To: till Roadmap Versions: New Comment: -Status: Open +Status: Feedback -Assigned To: +Assigned To: till Can you supply a patch to what you changed? Also, would you be able to upload an example or even a test? If a test is an issue, I'd be happy to build one Previous Comments: ------------------------------------------------------------------------ [2009-09-23 23:00:43] auxone Description: ------------ Parse::unescape() and Build:escape() do not handle \r as they do \n. In practice, I've found that often a \r will find it's way into the input used to build a card. When the card is later parsed, the segment after the \r is lost. Because of the way the class is designed, it is easy to escape() the \r, however it required a very slight change in the unescape() method to get the \r back. In light of this, I just added the \r to escape() and unescape() and it is my recommendation that you do the same. Having said that, I am not expert on IMC standards so perhaps this would violate that, but what I do know is that in it's current state a \r breaks cards. Thanks. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16637&edit=1

« previous php.pear.bugs (#1723) next »