Browse Source

Add files via upload

Capitan Cloud 2 years ago
parent
commit
2af3da2c10
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Public/index.php

+ 3 - 1
Public/index.php

@@ -36,7 +36,9 @@ $scriptPath = APP_SCRIPT_PATH;
 
 // PARAMETERS VALIDATION
 
-$url = strtolower(rtrim(substr(filter_input(INPUT_GET, "url", FILTER_SANITIZE_STRING), 0, 300), "/"));
+$url = filter_input(INPUT_GET, "url")??"";
+$url = strip_tags($url);
+$url = strtolower(trim(substr($url, 0, 300), "/"));
 
 switch ($url) {
   case "":