From 99f0971b735dabbc080a5bb4010bb55583041a90 Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@5704 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }