Bug fixed

thanks for wazirsoft :)
This commit is contained in:
hakasenyang
2016-11-14 21:09:51 +09:00
parent 971d00a06e
commit 2d13cd34d5
+2 -3
View File
@@ -17,9 +17,8 @@
public function WEBParsing($url, $cookie = NULL, $postparam = NULL, $otherheader = NULL)
{
$uri = parse_url($url);
$paramType = strtoupper($paramType);
if (!$uri['port']) $uri['port'] = 80;
if (!$uri['path']) $uri['path'] = "/";
if (!isset($uri['port'])) $uri['port'] = 80;
if (!isset($uri['path'])) $uri['path'] = "/";
$ch = curl_init();
$opts = array(CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => $url,