Merge pull request #70 from mmn/xss_in_search_page
XSS vulnerability in q parameter for search
This commit is contained in:
commit
45df35fdc0
|
@ -357,7 +357,7 @@ function setNewCurrentStream(stream,actionOnSuccess,setLocation) {
|
|||
// if this is a search stream
|
||||
else if(stream.substring(0,11) == 'search.json') {
|
||||
var defaultStreamName = stream;
|
||||
var streamHeader = window.sL.searchVerb + ': ' + decodeURIComponent(stream.substring(stream.indexOf('?q=')+3));
|
||||
var streamHeader = window.sL.searchVerb + ': ' + replaceHtmlSpecialChars(decodeURIComponent(stream.substring(stream.indexOf('?q=')+3)));
|
||||
}
|
||||
|
||||
// set the h2 header in the feed
|
||||
|
|
Loading…
Reference in New Issue
Block a user