protect with xss for login
This commit is contained in:
@ -94,11 +94,5 @@ button:hover {
|
||||
<p>If you have forgotten your password, please <span class="reset-link" onclick="location.href='/forgot-password'">reset here</span>.</p>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// Function to escape HTML characters
|
||||
function escapeHTML(str) {
|
||||
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user