Ver código fonte

Update surf.php

Capitan Cloud 2 anos atrás
pai
commit
b4cc2ad668
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      surf.php

+ 3 - 2
surf.php

@@ -30,7 +30,8 @@ require("config.inc");
 
 echo("<div style='top:5px;font-weight:900;background-color:#FFFFFF;'>&nbsp;LIGHTOFF&nbsp;&nbsp;(<a href='http://github.com/par7133/LightOff' target='_blank'>on github</a>)</div><br><br>");
 
-$url = filter_input(INPUT_GET, "url", FILTER_SANITIZE_STRING);
+$url = filter_input(INPUT_GET, "url")??"";
+$url = strip_tags($url);
 //echo($url."<br>");
 if ($url == "") {
   echo "<p>404 LightOff url doesn't exist.</p>\n";
@@ -118,4 +119,4 @@ echo($w);
 
 ?>
 
- 
+