Errata amendments

This commit is contained in:
RobinNixon
2021-11-16 12:23:58 +00:00
parent eeb4267820
commit fc6b9f4df3
11 changed files with 27 additions and 59 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
<?php // urlget.php
<?php
if (isset($_GET['url']))
{
header('Content-Type: text/xml');
echo file_get_contents("http://".sanitizeString($_GET['url']));
}
function sanitizeString($var)
{
$var = strip_tags($var);
$var = htmlentities($var);
return stripslashes($var);
}
?>
?>