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 @@

- +

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 @@ -
  • +
  • + + +
  • @@ -38,7 +41,7 @@
  • - http://kanboard.net/ + http://kanboard.net/
  • @@ -55,7 +58,7 @@ diff --git a/templates/project_remove.php b/templates/project_remove.php index f63c4031a..e9f213b55 100644 --- a/templates/project_remove.php +++ b/templates/project_remove.php @@ -5,7 +5,7 @@

    - +

    diff --git a/templates/user_index.php b/templates/user_index.php index 4b539599b..ccc955fc7 100644 --- a/templates/user_index.php +++ b/templates/user_index.php @@ -27,7 +27,7 @@ - + diff --git a/templates/user_remove.php b/templates/user_remove.php index e1dc6f7b2..a4db2e4a0 100644 --- a/templates/user_remove.php +++ b/templates/user_remove.php @@ -4,7 +4,7 @@
    -

    +