改进url_common_param的情况下urlencode的问题

This commit is contained in:
thinkphp
2017-09-25 12:22:56 +08:00
parent 996c389d8f
commit 7b5be2f273

View File

@@ -135,7 +135,7 @@ class Url
if (!empty($vars)) {
// 添加参数
if (Config::get('url_common_param')) {
$vars = urldecode(http_build_query($vars));
$vars = http_build_query($vars);
$url .= $suffix . '?' . $vars . $anchor;
} else {
$paramType = Config::get('url_param_type');