autoname calls
implement getRandomName function
This commit is contained in:
		
					parent
					
						
							
								0e01568ccd
							
						
					
				
			
			
				commit
				
					
						b99925060a
					
				
			
		
					 5 changed files with 6 additions and 5 deletions
				
			
		|  | @ -11,6 +11,7 @@ use Friendica\Database\DBA; | |||
| use Friendica\Database\DBStructure; | ||||
| use Friendica\Object\Image; | ||||
| use Friendica\Util\Network; | ||||
| use Friendica\Util\Strings; | ||||
| 
 | ||||
| /** | ||||
|  * Contains methods for installation purpose of Friendica | ||||
|  | @ -264,7 +265,7 @@ class Installer | |||
| 		} | ||||
| 
 | ||||
| 		if ($passed2) { | ||||
| 			$str = autoname(8); | ||||
| 			$str = Strings::getRandomName(8); | ||||
| 			$cmd = "$phppath util/testargs.php $str"; | ||||
| 			$result = trim(shell_exec($cmd)); | ||||
| 			$passed3 = $result == $str; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue