Skip to content

Commit 2af3da2

Browse files
authored
Add files via upload
1 parent ad2b714 commit 2af3da2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Public/index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636

3737
// PARAMETERS VALIDATION
3838

39-
$url = strtolower(rtrim(substr(filter_input(INPUT_GET, "url", FILTER_SANITIZE_STRING), 0, 300), "/"));
39+
$url = filter_input(INPUT_GET, "url")??"";
40+
$url = strip_tags($url);
41+
$url = strtolower(trim(substr($url, 0, 300), "/"));
4042

4143
switch ($url) {
4244
case "":

0 commit comments

Comments
 (0)