Permalink
Browse files

Remove repetitive URI parameters

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1236 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 098b74b commit b6a172ebeb2e38adc4e9730221d6ffef2cb9d194 jakubvrana committed Nov 10, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/include/functions.inc.php
@@ -285,7 +285,7 @@ function queries_redirect($location, $message, $redirect) {
*/
function remove_from_uri($param = "") {
$param = "($param|" . session_name() . ")";
- return substr(preg_replace("~([?&])$param=[^&]*&~", '\\1', "$_SERVER[REQUEST_URI]&"), 0, -1);
+ return substr(preg_replace("~(?<=[?&])$param=[^&]*&~", '', "$_SERVER[REQUEST_URI]&"), 0, -1);
}
/** Generate page number for pagination

0 comments on commit b6a172e

Please sign in to comment.