aboutsummaryrefslogtreecommitdiffstats
path: root/langs
diff options
context:
space:
mode:
Diffstat (limited to 'langs')
-rw-r--r--langs/report_tx_git.php4
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 {