From 8c79589d647961b245da0d5e97ad43a9429844a8 Mon Sep 17 00:00:00 2001 From: filip Date: Sat, 9 Jul 2016 11:07:59 +0200 Subject: make use of new function --- langs/report_tx_git.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'langs/report_tx_git.php') 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 { -- cgit v1.2.1