From 172e3509f4d4e26d1edec5eee82ca1312acdfd0b Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 8 Feb 2013 18:06:17 +0100 Subject: [PATCH] json_encode the ID --- js/idtype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/idtype.php b/js/idtype.php index fe5e3f35..676d33db 100644 --- a/js/idtype.php +++ b/js/idtype.php @@ -13,4 +13,4 @@ header("Content-type: text/javascript"); header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); -echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid = "' . $_GET['id'] . '";'; \ No newline at end of file +echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid = '. json_encode($_GET['id']) .';'; \ No newline at end of file