mirror of
https://github.com/mumuy/data_location.git
synced 2026-11-21 15:44:45 +08:00
Merge pull request #87 from anupamme/fix-repo-data-location-multi-agent-cwe-79-index-html
fix: add output encoding in index.html (CWE-79)
This commit is contained in:
commit
5d5d24dc2d
@ -279,6 +279,9 @@
|
||||
onCallback:function(){
|
||||
var location = $location.val();
|
||||
if(location){
|
||||
location = location.replace(/[&<>"']/g,function(c){
|
||||
return {'&':'&','<':'<','>':'>','"':'"',"'":'''}[c];
|
||||
});
|
||||
result = searchItem.query(location);
|
||||
if(result.length>10){
|
||||
result = 10;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user