Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Input sanitization to prevent XSS

$name = $_GET["name"];
$safename = htmlspecialchars($name);
echo "Welcome $safename";
Source by rules.sonarsource.com #
 
PREVIOUS NEXT
Tagged: #Input #sanitization #prevent #XSS
ADD COMMENT
Topic
Name
2+9 =