mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
add fix for CVE-2019-12932, escape strings output by incr. search
This commit is contained in:
parent
66d2dcce8e
commit
414f00c5c9
|
@ -90,11 +90,11 @@ $(document).ready( function() {
|
|||
},
|
||||
highlighter : function (item) {
|
||||
if(item.charAt(0) == 'D')
|
||||
return '<i class="icon-file"></i> ' + item.substring(1);
|
||||
return '<i class="icon-file"></i> ' + item.substring(1).replace(/</g, '<');
|
||||
else if(item.charAt(0) == 'F')
|
||||
return '<i class="icon-folder-close-alt"></i> ' + item.substring(1);
|
||||
return '<i class="icon-folder-close-alt"></i> ' + item.substring(1).replace(/</g, '<');
|
||||
else
|
||||
return '<i class="icon-search"></i> ' + item.substring(1);
|
||||
return '<i class="icon-search"></i> ' + item.substring(1).replace(/</g, '<');
|
||||
}
|
||||
}); /* }}} */
|
||||
|
||||
|
@ -122,7 +122,7 @@ $(document).ready( function() {
|
|||
},
|
||||
highlighter : function (item) {
|
||||
strarr = item.split("#");
|
||||
return '<i class="icon-file"></i> ' + strarr[1];
|
||||
return '<i class="icon-file"></i> ' + strarr[1].replace(/</g, '<');
|
||||
}
|
||||
}); /* }}} */
|
||||
|
||||
|
@ -151,7 +151,7 @@ $(document).ready( function() {
|
|||
},
|
||||
highlighter : function (item) {
|
||||
strarr = item.split("#");
|
||||
return '<i class="icon-folder-close-alt"></i> ' + strarr[1];
|
||||
return '<i class="icon-folder-close-alt"></i> ' + strarr[1].replace(/</g, '<');
|
||||
}
|
||||
}); /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user