From: Jan Schneider Date: Wed, 3 Jun 2009 14:06:59 +0000 (+0200) Subject: Why do we need addslashes() here again? Shouldn't the json serialization take X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1af06a5abca78bb5d0fe00c13b18984d930f36c4;p=horde.git Why do we need addslashes() here again? Shouldn't the json serialization take care of escaping? Fixes double escaped double quotes. --- 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)); }