From dd854379c20722a763ae7fe3d097a57a544cae80 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 3 Jun 2009 17:08:23 -0700 Subject: Sanitize all data we return via json_encode() to guard against XSS and other data leaks. --- modules/gallery/helpers/l10n_client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery') diff --git a/modules/gallery/helpers/l10n_client.php b/modules/gallery/helpers/l10n_client.php index 4e905c6c..33f23857 100644 --- a/modules/gallery/helpers/l10n_client.php +++ b/modules/gallery/helpers/l10n_client.php @@ -173,7 +173,7 @@ class l10n_client_Core { $request->{$key}->translations->{$row->locale} = json_encode(unserialize($row->translation)); } - // @todo reduce memory consumpotion, e.g. free $request + // @todo reduce memory consumption, e.g. free $request $request_data = json_encode($request); $url = self::_server_url() . "?q=translations/submit"; $signature = self::_sign($request_data); -- cgit v1.2.3