From fa5a6464a353a15a351e1e1853af007fb41dd4af Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Fri, 22 Nov 2019 23:45:55 +0100 Subject: [PATCH] [FIX] lang sanity check fix #205 Signed-off-by: Jerome Jutteau --- lib/lang.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lang.php b/lib/lang.php index 48e247c..3bdef6a 100644 --- a/lib/lang.php +++ b/lib/lang.php @@ -76,7 +76,7 @@ function t_in($string_id, $lang) { function t_get_raw_json($lang) { $filename = str_replace("-", "_", $lang); - if (preg_match('/[^A-Za-z_\w]/', $input)) { + if (preg_match('/[^A-Za-z_\w]/', $filename)) { return false; } $p = JIRAFEAU_ROOT . "lib/locales/$filename.json"; -- 2.34.1