chore: ToDo and formatting

This commit is contained in:
Martin Ambrus
2017-10-18 12:43:37 +02:00
parent 6d9a93a4d4
commit 4c2c769a44
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ if(isset($_GET['gid'])) {
if(isset($_POST['t'])){
$_GET['t'] = preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['t']);
}
if(isset($_GET['id'])) {
if(isset($_GET['id'])) {
if (!ctype_digit(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']))){
$_GET['id'] = "1";
}