From 1af06a5abca78bb5d0fe00c13b18984d930f36c4 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 3 Jun 2009 16:06:59 +0200 Subject: [PATCH] Why do we need addslashes() here again? Shouldn't the json serialization take care of escaping? Fixes double escaped double quotes. --- kronolith/lib/Kronolith.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 01724c08d..93ad7a11a 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -195,7 +195,7 @@ class Kronolith } /* Gettext strings used in core javascript files. */ - $code['text'] = array_map('addslashes', array( + $code['text'] = array( 'ajax_timeout' => _("There has been no contact with the remote server for several minutes. The server may be temporarily unavailable or network problems may be interrupting your session. You will not see any updates until the connection is restored."), 'ajax_recover' => _("The connection to the remote server has been restored."), 'alarm' => _("Alarm:"), @@ -203,7 +203,7 @@ class Kronolith 'week' => str_replace('%d', '#{week}', _("Week %d")), 'agenda' => _("Agenda"), 'searching' => str_replace('%s', '#{term}', _("Events matching \"%s\"")), - )); + ); for ($i = 1; $i <= 12; ++$i) { $code['text']['month'][$i - 1] = NLS::getLangInfo(constant('MON_' . $i)); } -- 2.11.0