diff --git a/include/class.http.php b/include/class.http.php index 3baea958a9495b3e8967510818f36cb561069ec4..d45218051a12e3c9d5bbf1ddf24ade23d2760c2c 100644 --- a/include/class.http.php +++ b/include/class.http.php @@ -111,5 +111,10 @@ class Http { exit; } } + + static function build_query($vars, $encode=true, $separator='&') { + return http_build_query( + ($encode ? Format::htmlchars($vars) : $vars), '', $separator); + } } ?>