Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b9c7a78bcbcb1a4fe4e94eb9497590be42db2308 1 parent cccf30c
@Gemorroj authored xBBCoder committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  bbcode.lib.php
View
3  bbcode.lib.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.