aboutsummaryrefslogtreecommitdiffstats
path: root/langs/missing.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/missing.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/missing.php')
-rw-r--r--langs/missing.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/langs/missing.php b/langs/missing.php
index 345e9035e..881ed5e99 100644
--- a/langs/missing.php
+++ b/langs/missing.php
@@ -4,10 +4,10 @@
define('HLANG', true);
include 'lib.php';
-$s = isset($_GET['s']) ? strip_tags(trim($_GET['s'])) : null;
-$l = isset($_GET['l']) ? strip_tags(trim($_GET['l'])) : null;
+$s = get_sane_string('s');
+$l = get_sane_string('l');
-if (is_null($s)) {
+if (empty($s) || empty($l)) {
header('Location: /langs/report.php');
die;
}