mirror of
https://github.com/WordPress/WordPress.git
synced 2024-06-23 05:15:00 +02:00
Discard non-scalars when building query string.
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d42b3c19cb
commit
817335ed16
|
@ -1663,6 +1663,8 @@ class WP {
|
|||
foreach ($this->public_query_vars as $wpvar) {
|
||||
if (isset($this->query_vars[$wpvar]) && '' != $this->query_vars[$wpvar]) {
|
||||
$this->query_string .= (strlen($this->query_string) < 1) ? '' : '&';
|
||||
if ( !is_scalar($this->query_vars[$wpvar]) ) // Discard non-scalars.
|
||||
continue;
|
||||
$this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user