Update webpagetool.php

This commit is contained in:
Namhyeon Go 2020-01-16 14:13:10 +09:00 committed by GitHub
parent aaffec4006
commit 2c71f243e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,11 @@ if(!check_function_exists("get_web_curl")) {
}
$options[CURLOPT_POST] = 1;
$options[CURLOPT_POSTFIELDS] = $data;
if(is_array($data)) {
$options[CURLOPT_POSTFIELDS] = http_build_query($data);
} else {
$options[CURLOPT_POSTFIELDS] = $data;
}
}
if($method == "get") {