From 6ef9ba5b406b19db2f222668402f0389455b2487 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Mon, 11 Jun 2012 12:18:10 +0000 Subject: manage strings with escaped quotes --- langs.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'langs.inc.php') diff --git a/langs.inc.php b/langs.inc.php index 85ee95c95..d4bbabb87 100644 --- a/langs.inc.php +++ b/langs.inc.php @@ -197,10 +197,11 @@ function _lang_return($file) if ($C === '#') continue; if ($C === ';' && !empty($f[$k+1])) { - $strings[trim(substr($v, 1))] = trim($f[$k+1]); + $j = trim(substr($v, 1)); + $j = str_replace(array("\'", "\""), array("'", '"'), $j); + $strings[$j] = trim($f[$k+1]); } } - return $strings; } -- cgit v1.2.1