Skip to content

Commit

Permalink
Cast query vars to strings. fixes #3891
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@4991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
markjaquith committed Mar 7, 2007
1 parent 7184153 commit b0f12de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wp-includes/classes.php
Expand Up @@ -148,6 +148,8 @@ function parse_request($extra_query_vars = '') {
$this->query_vars[$wpvar] = $_GET[$wpvar];
elseif (!empty($perma_query_vars[$wpvar]))
$this->query_vars[$wpvar] = $perma_query_vars[$wpvar];

$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
}

foreach ($this->private_query_vars as $var) {
Expand Down

0 comments on commit b0f12de

Please sign in to comment.