Move internal recursion-counter to the end of all cur/fetchUrl parameters
This commit is contained in:
		
					parent
					
						
							
								10683a43c8
							
						
					
				
			
			
				commit
				
					
						cc7444d84d
					
				
			
		
					 15 changed files with 34 additions and 38 deletions
				
			
		|  | @ -209,7 +209,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) | |||
| 		 * | ||||
| 		 */ | ||||
| 
 | ||||
| 		$res = Network::post($dfrn_confirm, $params, null, $redirects, 120)->getBody(); | ||||
| 		$res = Network::post($dfrn_confirm, $params, null, 120)->getBody(); | ||||
| 
 | ||||
| 		Logger::log(' Confirm: received data: ' . $res, Logger::DATA); | ||||
| 
 | ||||
|  |  | |||
|  | @ -70,9 +70,8 @@ function parse_url_content(App $a) | |||
| 
 | ||||
| 	// Check if the URL is an image, video or audio file. If so format
 | ||||
| 	// the URL with the corresponding BBCode media tag
 | ||||
| 	$redirects = 0; | ||||
| 	// Fetch the header of the URL
 | ||||
| 	$curlResponse = Network::curl($url, false, $redirects, ['novalidate' => true, 'nobody' => true]); | ||||
| 	$curlResponse = Network::curl($url, false, ['novalidate' => true, 'nobody' => true]); | ||||
| 
 | ||||
| 	if ($curlResponse->isSuccess()) { | ||||
| 		// Convert the header fields into an array
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue