From 1bae252c91bfe18f5c3b2e462cf3f4846ed5d575 Mon Sep 17 00:00:00 2001 From: tokul Date: Tue, 7 Sep 2004 10:02:04 +0000 Subject: [PATCH] sanitizing vcard version field and providing empty firstname/lastname values. It would be nicer to assume compatibility with some vcard version and try extracting firstname/lastname/email info. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8029 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/vcard.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vcard.php b/src/vcard.php index 3f902552..c09b0945 100644 --- a/src/vcard.php +++ b/src/vcard.php @@ -94,8 +94,11 @@ if ($vcard_nice['version'] == '2.1') { } } else { echo '' . - sprintf(_("vCard Version %s is not supported. Some information might not be converted correctly."),$vcard_nice['version']) . + sprintf(_("vCard Version %s is not supported. Some information might not be converted correctly."), + htmlspecialchars($vcard_nice['version'])) . "\n"; + $vcard_nice['firstname']=''; + $vcard_nice['lastname']=''; } foreach ($vcard_nice as $k => $v) { -- 2.25.1