sanitize input to protect against xss attacks, thanks @seecrets:midov.pl

This commit is contained in:
Midov 2023-04-03 09:51:32 +02:00
parent 5f6b5d86cc
commit 0ac577f398

View File

@ -12,7 +12,7 @@ registrationpage() {
echo "<html>" echo "<html>"
echo "<head>" echo "<head>"
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
echo "<style> body { color:black ; background-image: url('background.jpg'); background-repeat: no-repeat; background-size: cover; } .info { background: white ; margin: 1px; padding: 1px ;} </style>" echo "<style> body { color:black ; background-image: url('background.jpg'); background-repeat: no-repeat; background-size: cover; } .info { background: white ; margin: 0px; padding: 0px ;} </style>"
echo "</head>" echo "</head>"
echo "<body>" echo "<body>"
echo "<center>" echo "<center>"
@ -37,7 +37,7 @@ registrationpage() {
echo "</td> <td>" echo "</td> <td>"
echo "<input type='password' id='passwordagain' name='passwordagain'>" echo "<input type='password' id='passwordagain' name='passwordagain'>"
echo "<input type='hidden' id='captcha' name='captcha' value=\"$id\">" echo "<input type='hidden' id='captcha' name='captcha' value='\"$id\"'>"
echo '</td> </tr> </table>' echo '</td> </tr> </table>'
echo "<input type='submit' value='Submit'>" echo "<input type='submit' value='Submit'>"
echo "</form>" echo "</form>"