Update webpagetool.php

This commit is contained in:
Namhyeon Go 2020-02-25 18:36:26 +09:00 committed by GitHub
parent 7c44bbb263
commit a920baaa83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -457,7 +457,7 @@ if(!is_fn("get_web_curl")) {
if(count($data) > 0) {
if($method == "post") {
foreach($data as $k=>$v) {
if(substr($v, 0, 1) == "@") { // if this is a file
if(is_string($v) && substr($v, 0, 1) == "@") { // if this is a file
if(is_fn("curl_file_create")) { // php 5.5+
$data[$k] = curl_file_create(substr($v, 1));
} else {