only strip question marks from the RIGHT side of the query string. fixes #4464 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@5704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-06-14 04:44:06 +00:00
parent 9fac8dcbae
commit 99f0971b73
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ function add_query_arg() {
} }
$ret = trim($ret, '?'); $ret = trim($ret, '?');
$ret = $protocol . $base . $ret . $frag; $ret = $protocol . $base . $ret . $frag;
$ret = trim($ret, '?'); $ret = rtrim($ret, '?');
return $ret; return $ret;
} }