Use htmlentities to mitigate potential XSS vulnerabilities
This commit is contained in:
1 parent
a48be33024
commit
632d9ccfeb
3 files changed
+7
-7
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ if ($_SESSION['log'] == 1) {
|
||||
<title>Mail Settings</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mail Settings:</h1><p>Guten Tag, ' . $_SESSION['username'] . '@' . $_SESSION['domain'] . '</p>';
|
||||
<h1>Mail Settings:</h1><p>Guten Tag, ' . htmlentities($_SESSION['username']) . '@' . htmlentities($_SESSION['domain']) . '</p>';
|
||||
$randval = rand(0, 99);
|
||||
echo '<!-- '. $randval . ' -->';
|
||||
if (rand(0,99) == 42) {
|
||||
|
||||
Reference in new issue
Block a user