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
bffcbb7161
commit
e9d3bc8358
@ -215,9 +215,7 @@ function submitform()
|
|||||||
{
|
{
|
||||||
var x = document.getElementById("idimg");
|
var x = document.getElementById("idimg");
|
||||||
x.setAttribute("src", "https://robohash.org/" + document.getElementById("textform").query.value );
|
x.setAttribute("src", "https://robohash.org/" + document.getElementById("textform").query.value );
|
||||||
var y = document.getElementById("YourIP");
|
$("#YourIP").text( "http://robohash.org/" + document.getElementById("textform").query.value);
|
||||||
y.innerHTML = "http://robohash.org/" + document.getElementById("textform").query.value;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user