json_encode the ID

master
Lukas Reschke 2013-02-08 18:06:17 +01:00
parent a240bce96f
commit 172e3509f4
1 changed files with 1 additions and 1 deletions

View File

@ -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'] . '";';
echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid = '. json_encode($_GET['id']) .';';