Commit fa5a6464 authored by Jérôme Jutteau's avatar Jérôme Jutteau

[FIX] lang sanity check

fix #205Signed-off-by: Jérôme Jutteau's avatarJerome Jutteau <[email protected]>
parent a793f57e
Pipeline #97985370 passed with stage
in 54 seconds
......@@ -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";
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment