Use get_temppath() instead of hard-coded '/tmp' to store cookiejar
This commit is contained in:
		
					parent
					
						
							
								4007876b84
							
						
					
				
			
			
				commit
				
					
						0ae83e41a2
					
				
			
		
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -335,7 +335,7 @@ function onepoll_run(&$argv, &$argc){
 | 
			
		|||
		if($contact['rel'] == CONTACT_IS_FOLLOWER || $contact['blocked'] || $contact['readonly'])
 | 
			
		||||
			return;
 | 
			
		||||
 | 
			
		||||
		$cookiejar = tempnam('/tmp', 'cookiejar-onepoll-');
 | 
			
		||||
		$cookiejar = tempnam(get_temppath(), 'cookiejar-onepoll-');
 | 
			
		||||
		$xml = fetch_url($contact['poll'], false, $redirects, 0, Null, $cookiejar);
 | 
			
		||||
		unlink($cookiejar);
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue