Skip to content

Commit bd41e0a

Browse files
Potential fix for code scanning alert no. 3: DOM text reinterpreted as HTML
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent e41fd70 commit bd41e0a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

assets/js/admin-pull.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ const getURL = () => {
172172
pullTaxonomies.forEach( ( taxonomyField ) => {
173173
if ( jQuery( taxonomyField ).hasClass( 'show' ) ) {
174174
taxonomies += `${ taxonomyField.id }=${
175-
taxonomyField.options[ taxonomyField.selectedIndex ].value
175+
escapeURLComponent(
176+
taxonomyField.options[ taxonomyField.selectedIndex ].value
177+
)
176178
}&`;
177179
}
178180
} );

0 commit comments

Comments
 (0)