This commit is contained in:
xesmyd committed 2025-08-14 22:41:49 +02:00
1 parent 2de81ccc46
commit 8ce45119b6
39774 files changed
+4309466

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Sabre\VObject;
/**
* This issue was pointed out in Issue 55. \r should be stripped completely
* when encoding property values.
*/
class SlashRTest extends \PHPUnit_Framework_TestCase {
function testEncode() {
$vcal = new Component\VCalendar();
$prop = $vcal->add('test', "abc\r\ndef");
$this->assertEquals("TEST:abc\\ndef\r\n", $prop->serialize());
}
}