mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Encoding to handle XSS (#1409)
This commit is contained in:
@@ -14,7 +14,7 @@ function main()
|
|||||||
maxResults: (args.maxResults !== null) ? parseInt(args.maxResults, 10) : DEFAULT_MAX_RESULTS,
|
maxResults: (args.maxResults !== null) ? parseInt(args.maxResults, 10) : DEFAULT_MAX_RESULTS,
|
||||||
pageSize: (args.pageSize !== null) ? parseInt(args.pageSize, 10) : DEFAULT_PAGE_SIZE,
|
pageSize: (args.pageSize !== null) ? parseInt(args.pageSize, 10) : DEFAULT_PAGE_SIZE,
|
||||||
startIndex: (args.startIndex !== null) ? parseInt(args.startIndex, 10) : 0,
|
startIndex: (args.startIndex !== null) ? parseInt(args.startIndex, 10) : 0,
|
||||||
facetFields: args.facetFields,
|
facetFields: encodeURIComponent(args.facetFields),
|
||||||
filters: args.filters,
|
filters: args.filters,
|
||||||
encodedFilters: args.encodedFilters,
|
encodedFilters: args.encodedFilters,
|
||||||
spell: (args.spellcheck !== null) ? (args.spellcheck == "true") : false
|
spell: (args.spellcheck !== null) ? (args.spellcheck == "true") : false
|
||||||
|
Reference in New Issue
Block a user