mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-08 22:40:37 +00:00
Plugins: Properly encode query string s
parameter in plugin search.
This ensures special characters like `&` are properly encoded when passed as URL parameter. Props praful2111, audrasjb, costdev. Fixes #56339. Built from https://develop.svn.wordpress.org/trunk@53844 git-svn-id: http://core.svn.wordpress.org/trunk@53403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6996204bab
commit
efbd56d13b
@ -2535,7 +2535,7 @@
|
|||||||
|
|
||||||
data = {
|
data = {
|
||||||
_ajax_nonce: wp.updates.ajaxNonce,
|
_ajax_nonce: wp.updates.ajaxNonce,
|
||||||
s: event.target.value,
|
s: encodeURIComponent( event.target.value ),
|
||||||
tab: 'search',
|
tab: 'search',
|
||||||
type: $( '#typeselector' ).val(),
|
type: $( '#typeselector' ).val(),
|
||||||
pagenow: pagenow
|
pagenow: pagenow
|
||||||
@ -2612,7 +2612,7 @@
|
|||||||
$pluginSearch.on( 'keyup input', _.debounce( function( event ) {
|
$pluginSearch.on( 'keyup input', _.debounce( function( event ) {
|
||||||
var data = {
|
var data = {
|
||||||
_ajax_nonce: wp.updates.ajaxNonce,
|
_ajax_nonce: wp.updates.ajaxNonce,
|
||||||
s: event.target.value,
|
s: encodeURIComponent( event.target.value ),
|
||||||
pagenow: pagenow,
|
pagenow: pagenow,
|
||||||
plugin_status: 'all'
|
plugin_status: 'all'
|
||||||
},
|
},
|
||||||
|
2
wp-admin/js/updates.min.js
vendored
2
wp-admin/js/updates.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-alpha-53843';
|
$wp_version = '6.1-alpha-53844';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user