<?php
/*
* Jirafeau, your web file repository
- * Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
+ * Copyright (C) 2015 Jerome Jutteau <jerome@jutteau.fr>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
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";