From 3477fb5f6e6bbcbf2210af3ca3de94b8d9faca29 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Mon, 27 Nov 2006 01:17:01 +0000 Subject: #97640 by imagine. Don't encode & in translated strings. --- includes/locale.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/locale.inc b/includes/locale.inc index bb2136ccf..44c94d3a1 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -422,7 +422,7 @@ function _locale_string_edit($lid) { function _locale_string_edit_submit($form_id, $form_values) { $lid = $form_values['lid']; foreach ($form_values['translations'] as $key => $value) { - $value = filter_xss_admin($value); + $value = str_replace('&', '&', filter_xss_admin($value)); $trans = db_fetch_object(db_query("SELECT translation FROM {locales_target} WHERE lid = %d AND locale = '%s'", $lid, $key)); if (isset($trans->translation)) { db_query("UPDATE {locales_target} SET translation = '%s' WHERE lid = %d AND locale = '%s'", $value, $lid, $key); -- cgit v1.2.3