diff --git a/lib/translator.php b/lib/translator.php index d9d9a84ac..75d40a233 100644 --- a/lib/translator.php +++ b/lib/translator.php @@ -11,6 +11,10 @@ namespace Translator { \array_shift($args); \array_unshift($args, get($identifier, $identifier)); + foreach ($args as &$arg) { + $arg = htmlspecialchars($arg, ENT_QUOTES, 'UTF-8', false); + } + return \call_user_func_array( 'sprintf', $args @@ -77,7 +81,6 @@ namespace Translator { foreach ($dir as $fileinfo) { if (strpos($fileinfo->getFilename(), '.php') !== false) { - $locales = array_merge($locales, include $fileinfo->getPathname()); } } @@ -91,7 +94,6 @@ namespace Translator { static $values = array(); if ($locales !== null) { - $values = $locales; } diff --git a/templates/board_remove.php b/templates/board_remove.php index c95c8a28a..b406eb387 100644 --- a/templates/board_remove.php +++ b/templates/board_remove.php @@ -5,7 +5,7 @@
- = t('Do you really want to remove this column: "%s"?', Helper\escape($column['title'])) ?> + = t('Do you really want to remove this column: "%s"?', $column['title']) ?> = t('This action will REMOVE ALL TASKS associated to this column!') ?>
diff --git a/templates/config_index.php b/templates/config_index.php index 5012538a1..d94ee8b9a 100644 --- a/templates/config_index.php +++ b/templates/config_index.php @@ -27,7 +27,10 @@ = t('Webhooks token:') ?> = Helper\escape($values['webhooks_token']) ?> -- = t('Do you really want to remove this project: "%s"?', Helper\escape($project['name'])) ?> + = t('Do you really want to remove this project: "%s"?', $project['name']) ?>
= t('Do you really want to remove this user: "%s"?', Helper\escape($user['username'])) ?>
+= t('Do you really want to remove this user: "%s"?', $user['username']) ?>