Skip to content

Commit

Permalink
WEBUI-1510: Own Code Static Scan : Cross-Site Scripting (XSS)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuljain-dev committed May 17, 2024
1 parent a8019bf commit e1ff632
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ export const DocumentCreationBehavior = [

newDocument(type, properties) {
if (!schemaFetcher) {
schemaFetcher = document.createElement('div');
schemaFetcher.innerHTML = '<nuxeo-resource></nuxeo-resource>';
this.shadowRoot.appendChild(schemaFetcher);
[schemaFetcher] = schemaFetcher.getElementsByTagName('nuxeo-resource');
schemaFetcher = document.createElement('nuxeo-resource');
document.body.appendChild(schemaFetcher);
}
schemaFetcher.path = `path/${this.targetPath}/@emptyWithDefault`;
schemaFetcher.params = { type: this.selectedDocType.type };
Expand Down

0 comments on commit e1ff632

Please sign in to comment.