Skip to content

Commit 71ab2d8

Browse files
authored
Merge pull request #1274 from 10up/autofix/alert-3-1e2f7ca015
Fix code scanning alert #3: DOM text reinterpreted as HTML
2 parents 3af0e4c + 1ff0c1c commit 71ab2d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/admin-pull.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if ( chooseConnection && choosePostType && form ) {
3939
jQuery( searchBtn ).on( 'click', ( event ) => {
4040
event.preventDefault();
4141

42-
const search = searchField.value;
42+
const search = encodeURIComponent( searchField.value );
4343

4444
document.location = `${ getURL() }&s=${ search }`;
4545

0 commit comments

Comments
 (0)