ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\VObject\GoogleColonEscapingTest Class Reference

Google produces vcards with a weird escaping of urls. More...

+ Inheritance diagram for Sabre\VObject\GoogleColonEscapingTest:
+ Collaboration diagram for Sabre\VObject\GoogleColonEscapingTest:

Public Member Functions

 testDecode ()
 

Detailed Description

Google produces vcards with a weird escaping of urls.

VObject will provide a workaround for this, so end-user still get expected values.

Definition at line 13 of file GoogleColonEscapingTest.php.

Member Function Documentation

◆ testDecode()

Sabre\VObject\GoogleColonEscapingTest::testDecode ( )

Definition at line 15 of file GoogleColonEscapingTest.php.

References $vobj, ILIAS\FileDelivery\http(), and Sabre\VObject\Reader\read().

15  {
16 
17  $vcard = <<<VCF
18 BEGIN:VCARD
19 VERSION:3.0
20 FN:Evert Pot
21 N:Pot;Evert;;;
22 EMAIL;TYPE=INTERNET;TYPE=WORK:evert@fruux.com
23 BDAY:1985-04-07
24 item7.URL:http\://www.rooftopsolutions.nl/
25 END:VCARD
26 VCF;
27 
28  $vobj = Reader::read($vcard);
29  $this->assertEquals('http://www.rooftopsolutions.nl/', $vobj->URL->getValue());
30 
31  }
static http()
Fetches the global http state from ILIAS.
$vobj
Definition: rrulebench.php:21
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: