Opened 18 months ago
Last modified 17 months ago
#58492 new defect (bug)
Plugin Search Issue: Trimming of Keywords with Ampersand (&) upon Page Refresh
Reported by: | adhun | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.3 |
Component: | Plugins | Keywords: | has-patch |
Focuses: | ui | Cc: |
Description
I have encountered a peculiar issue with the plugin search functionality in the WordPress backend. When performing a plugin search using keywords that contain an ampersand (&) character and refreshing the page twice, the keywords are getting trimmed, resulting in incomplete search results.
Steps to Reproduce:
- Access the WordPress backend.
- Navigate to the Plugins section.
- In the search box, enter keywords that include an ampersand character, e.g., "search & replace"
- Press Enter or click the Search button.
- Note the search results.
- Refresh the page twice by pressing F5 or using the browser's refresh button.
- Observe that the search keywords are being trimmed to "search" only.
- The search results are now incomplete, as the full keywords were not used for the search.
Expected Results:
The plugin search should retain the complete keywords, including the ampersand character, upon page refreshes. This would ensure accurate and consistent search results, even after multiple page refreshes.
Actual Results:
Upon refreshing the plugin search page twice, the keywords containing an ampersand (&) are trimmed, resulting in incomplete search results.
Reproducibility:
Consistently reproducible.
Attachments (3)
Change History (6)
@
18 months ago
On further inspection i found that on wp_admin_canonical_url function url is not properly encoded before passing to javascript.
@
18 months ago
On further inspection i found that on wp_admin_canonical_url function url is not properly encoded before passing to javascript. Patched by adding urlencode function.
On further inspection i found that on wp_admin_canonical_url function url is not properly encoded before passing to javascriptt.