aboutsummaryrefslogtreecommitdiffstats
path: root/langs/report.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-07-07 23:51:39 +0200
committerfilip <filip.komar@gmail.com>2016-07-07 23:51:39 +0200
commitfd785f3d32d0b299556890e9fa639d5cc1209019 (patch)
tree00f2acaeef5e8c7f9e9be8fbbbb3b1acb3c6b16b /langs/report.php
parente9b2d6d6c51ac27413f09581b4647fbc782476be (diff)
downloadwww-fd785f3d32d0b299556890e9fa639d5cc1209019.tar
www-fd785f3d32d0b299556890e9fa639d5cc1209019.tar.gz
www-fd785f3d32d0b299556890e9fa639d5cc1209019.tar.bz2
www-fd785f3d32d0b299556890e9fa639d5cc1209019.tar.xz
www-fd785f3d32d0b299556890e9fa639d5cc1209019.zip
new function 'get sanitized string from $_GET'
Diffstat (limited to 'langs/report.php')
-rw-r--r--langs/report.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/langs/report.php b/langs/report.php
index 74bc56f68..0f0d7c0ed 100644
--- a/langs/report.php
+++ b/langs/report.php
@@ -42,14 +42,14 @@
define('HLANG', TRUE);
include 'lib.php';
- $one_language = isset($_GET['l']) ? strip_tags(trim($_GET['l'])) : NULL;
- $one_resource = isset($_GET['r']) ? strip_tags(trim($_GET['r'])) : NULL;
+ $one_language = get_sane_string('l');
+ $one_resource = get_sane_string('r');
$one_language_all_resources = FALSE;
$all_languages_only_one_resource = FALSE;
$otherLangs = get_other_langs();
- if (isset($one_language) && $one_language != 'all') {
+ if (!empty($one_language) && $one_language != 'all') {
if (in_array($one_language, $otherLangs)) {
$one_language_all_resources = TRUE;
$otherLangs = array('en', $one_language);
@@ -59,7 +59,7 @@
}
$enFiles = array_merge(array('../_nav/langs/en.pot'), get_lang_references('*.pot')); // added navigation file
- if (isset($one_resource) && $one_resource != 'all') {
+ if (!empty($one_resource) && $one_resource != 'all') {
if (in_array($one_resource, $enFiles)) {
$all_languages_only_one_resource = TRUE;
$enFiles = array($one_resource);