X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=903b68328e248dfbcb92c619e95fc1039bbc54ff;hb=68f2420e290fd8f77d8e8dca6686954368d38d02;hp=a7059586ba1c7bbe37b6f3b8fa3b87324a264006;hpb=bf89da2a706d1f404a6259925060f3327077c8cd;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index a705958..903b683 100755 --- a/index.php +++ b/index.php @@ -1015,7 +1015,8 @@ class Sklad_UI { function post_redirect_get($location, $message='', $error=false, $translate=true) { $messaget = $translate ? T($message) : $message; - $url_args = $messaget != '' ? '?message='.urlencode($messaget) : ''; + $separator = preg_match('/\?/', $location) ? '&' : '?'; + $url_args = $messaget != '' ? $separator.'message='.urlencode($messaget) : ''; $location = $this->html->internal_url($location).$url_args; header('Location: '.$location); if($error) trigger_error($message);