1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 20:01:25 +02:00

Improve handling of translations with '

This commit is contained in:
Jakub Vrana
2025-03-24 15:57:46 +01:00
parent 4df205d4ec
commit 078a8b3d6b
5 changed files with 5 additions and 4 deletions

View File

@@ -82,6 +82,7 @@ function lang($idf, $number = null) {
; // http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
$translation = $translation[$pos];
}
$translation = str_replace("'", '', $translation); // translations can contain HTML or be used in optionlist (we couldn't escape them here) but they can also be used e.g. in title='' //! escape plaintext translations
$args = func_get_args();
array_shift($args);
$format = str_replace("%d", "%s", $translation);