Permalink
Browse files

del last "=" from links (for $_SERVER['QUEY_STRING'])

  • Loading branch information...
Gemorroj authored and xBBCoder committed Jan 15, 2012
1 parent cccf30c commit b9c7a78bcbcb1a4fe4e94eb9497590be42db2308
Showing with 2 additions and 1 deletion.
  1. +2 −1 bbcode.lib.php
View
@@ -1117,12 +1117,13 @@ function checkUrl($url) {
if (isset($parse['query'])) {
parse_str($parse['query'], $query);
// PHP 5.1.2
- $out .= '?' . str_replace('+', '%20', http_build_query($query, '', '&'));
+ $out .= '?' . str_replace('+', '%20', rtrim(http_build_query($query, '', '&'), '='));
}
if (isset($parse['fragment'])) {
$out .= '#' . rawurlencode($parse['fragment']);
}
+
return $out;
}

0 comments on commit b9c7a78

Please sign in to comment.