Update webpagetool.php

This commit is contained in:
Namhyeon Go 2018-09-24 01:05:17 +09:00 committed by GitHub
parent f1c7f834f1
commit 1a9a5042ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,8 +46,11 @@ if(!function_exists("get_web_cmd")) {
$output = ""; $output = "";
$cmd_fin = ""; $cmd_fin = "";
$cmd = ""; $cmd = "";
loadHelper("exectool"); if(!loadHelper("exectool")) {
set_error("Helper exectool is required");
show_errors();
}
if($method == "get") { if($method == "get") {
$cmd = "curl -A '%s' -k '%s'"; $cmd = "curl -A '%s' -k '%s'";