From 660761a2b80d6c22a02d2eb95904c1ec62ea489e Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 10 Apr 2019 20:11:56 +0900 Subject: [PATCH] Update webpagetool.php --- helper/webpagetool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 7e55b54..536f55c 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -60,7 +60,7 @@ if(!check_function_exists("get_web_cmd")) { // the same as --header if(is_array($v)) { if($k == "Authentication") { - if($v[0] == "Basic") { + if($v[0] == "Basic" && check_array_length($v, 3) == 0) { $args[] = sprintf("-u '%s:%s'", $v[1], $v[2]); } else { $args[] = sprintf("-H '%s: %s'", $k, implode(" ", $v));