Skip to content

Commit

Permalink
Fix code scanning alert #3: DOM text reinterpreted as HTML
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
jeffpaul and github-advanced-security[bot] authored Sep 19, 2024
1 parent cf96557 commit d1e5073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/admin-pull.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if ( chooseConnection && choosePostType && form ) {
jQuery( searchBtn ).on( 'click', ( event ) => {
event.preventDefault();

const search = searchField.value;
const search = encodeURIComponent(searchField.value);

Check failure on line 42 in assets/js/admin-pull.js

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

assets/js/admin-pull.js#L42

[prettier/prettier] Replace `searchField.value` with `·searchField.value·`

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

Expand Down

0 comments on commit d1e5073

Please sign in to comment.