aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-06-11 12:18:10 +0000
committerRomain d'Alverny <rda@mageia.org>2012-06-11 12:18:10 +0000
commit6ef9ba5b406b19db2f222668402f0389455b2487 (patch)
tree4eab36751a6b3b3bfb73510cceab35812fed7ad3
parent79a1e75a68818f4ad06b9bf70ba5c646b525d8bc (diff)
downloadwww-6ef9ba5b406b19db2f222668402f0389455b2487.tar
www-6ef9ba5b406b19db2f222668402f0389455b2487.tar.gz
www-6ef9ba5b406b19db2f222668402f0389455b2487.tar.bz2
www-6ef9ba5b406b19db2f222668402f0389455b2487.tar.xz
www-6ef9ba5b406b19db2f222668402f0389455b2487.zip
manage strings with escaped quotes
-rw-r--r--langs.inc.php5
1 files changed, 3 insertions, 2 deletions
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;
}