mirror of
https://github.com/geohot/qira
synced 2025-03-13 10:33:30 +03:00
Fix XSS vulnerability
This commit is contained in:
parent
a1e445b906
commit
19536ce6d6
@ -120,7 +120,7 @@ function on_names(msg) { DS("names");
|
||||
names_cache[addr] = msg[addr];
|
||||
$(".addr_"+addr).each(function() {
|
||||
$(this).addClass("name");
|
||||
$(this).html(msg[addr]);
|
||||
$(this).text(msg[addr]);
|
||||
});
|
||||
}
|
||||
} stream.on("names", on_names);
|
||||
@ -133,7 +133,7 @@ function replace_names() {
|
||||
var ret = get_address_from_class(this);
|
||||
if (names_cache[ret] !== undefined) {
|
||||
$(this).addClass("name");
|
||||
$(this).html(names_cache[ret]);
|
||||
$(this).text(names_cache[ret]);
|
||||
}
|
||||
if (ret !== undefined) addrs.push(ret);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user