Browse Source

Bug fixed

thanks for wazirsoft :)
pull/1/head
hakasenyang 2 years ago
parent
commit
2d13cd34d5
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      _function.php

+ 2
- 3
_function.php View File

@@ -17,9 +17,8 @@
17 17
 		public function WEBParsing($url, $cookie = NULL, $postparam = NULL, $otherheader = NULL)
18 18
 		{
19 19
 			$uri = parse_url($url);
20
-			$paramType = strtoupper($paramType);
21
-			if (!$uri['port']) $uri['port'] = 80;
22
-			if (!$uri['path']) $uri['path'] = "/";
20
+			if (!isset($uri['port'])) $uri['port'] = 80;
21
+			if (!isset($uri['path'])) $uri['path'] = "/";
23 22
 			$ch = curl_init();
24 23
 			$opts = array(CURLOPT_RETURNTRANSFER => true,
25 24
 				CURLOPT_URL => $url,

Loading…
Cancel
Save