-
Notifications
You must be signed in to change notification settings - Fork 0
0.0.0-rc.15 #723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.0.0-rc.15 #723
Conversation
…dates generator.
… get errors around multiple script that is looking only for 1st index (0)
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
| '{{componentId}}-{{sectionId}}-name' : { | ||
| afterInit : function() { | ||
| $('#{{componentId}}-{{sectionId}}-name').keyup(function(e) { | ||
| $('#swatch-preview').html($('#{{componentId}}-{{sectionId}}-name').val()); |
Check failure
Code scanning / CodeQL
DOM text reinterpreted as HTML High
DOM text
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 7 months ago
To fix the issue, replace the use of .html() with .text(). The .text() method ensures that the input is treated as plain text and not interpreted as HTML, thereby mitigating the risk of XSS. This change will not alter the functionality of the code if the intention is to display the input value as plain text.
The specific change is to update line 190 to use .text() instead of .html(). No additional imports or dependencies are required for this fix.
-
Copy modified line R190
| @@ -189,3 +189,3 @@ | ||
| $('#{{componentId}}-{{sectionId}}-name').keyup(function(e) { | ||
| $('#swatch-preview').html($('#{{componentId}}-{{sectionId}}-name').val()); | ||
| $('#swatch-preview').text($('#{{componentId}}-{{sectionId}}-name').val()); | ||
| }); |
No description provided.