Skip to content
Snippets Groups Projects
Commit cf4b4cea authored by Peter Rotich's avatar Peter Rotich
Browse files

http: Add http_build_query wrapper

This is necessary so we can sanitize/encode inputs.
parent 9c9bfae1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment