mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
Avoid a XSS issue
This commit is contained in:
parent
3ed19f4271
commit
1c90774ffd
@ -215,9 +215,7 @@ function submitform()
|
||||
{
|
||||
var x = document.getElementById("idimg");
|
||||
x.setAttribute("src", "https://robohash.org/" + document.getElementById("textform").query.value );
|
||||
var y = document.getElementById("YourIP");
|
||||
y.innerHTML = "http://robohash.org/" + document.getElementById("textform").query.value;
|
||||
|
||||
$("#YourIP").text( "http://robohash.org/" + document.getElementById("textform").query.value);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user