diff options
author | filip <filip.komar@gmail.com> | 2016-07-09 11:07:59 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-07-09 11:07:59 +0200 |
commit | 8c79589d647961b245da0d5e97ad43a9429844a8 (patch) | |
tree | ee0e3a97ffe87a7e2bdee2e4d764cd678430a76f /langs | |
parent | fd785f3d32d0b299556890e9fa639d5cc1209019 (diff) | |
download | www-8c79589d647961b245da0d5e97ad43a9429844a8.tar www-8c79589d647961b245da0d5e97ad43a9429844a8.tar.gz www-8c79589d647961b245da0d5e97ad43a9429844a8.tar.bz2 www-8c79589d647961b245da0d5e97ad43a9429844a8.tar.xz www-8c79589d647961b245da0d5e97ad43a9429844a8.zip |
make use of new function
Diffstat (limited to 'langs')
-rw-r--r-- | langs/report_tx_git.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/langs/report_tx_git.php b/langs/report_tx_git.php index 44e986082..9b42e54ea 100644 --- a/langs/report_tx_git.php +++ b/langs/report_tx_git.php @@ -36,14 +36,14 @@ define('HLANG', TRUE); include 'lib.php'; $errors = array(); // stored for error management ;) -$c = (string) filter_input(INPUT_GET, 'c', FILTER_SANITIZE_STRING); +$c = get_sane_string('c'); if (in_array($c, array('Webpages', 'Documentation', 'Cauldron'))) { $resource_type = $c; // filter only valid resource types } else { $resource_type = 'Webpages'; // default } if (isset($_GET['l'])) { - $wanted_language = (string) filter_input(INPUT_GET, 'l', FILTER_SANITIZE_STRING); + $wanted_language = get_sane_string('l'); $wanted_lang_name = get_language_name($wanted_language) . " ("; $wanted_lang_name .= build_transifex_link($wanted_language, NULL, $resource_type) . ")"; } else { |