From e542bbdde1d5271d66e95f8f904dbcbd3d02fbd2 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 14 Jun 2007 04:44:06 +0000 Subject: [PATCH] only strip question marks from the RIGHT side of the query string. fixes #4464 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@5704 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 87b9ce7cbc..2460aa8354 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -627,7 +627,7 @@ function add_query_arg() { } $ret = trim($ret, '?'); $ret = $protocol . $base . $ret . $frag; - $ret = trim($ret, '?'); + $ret = rtrim($ret, '?'); return $ret; }