First remove the quotes, then the whitespace, then the trailing slash.
This commit is contained in:
		
							parent
							
								
									4e0d7d14ae
								
							
						
					
					
						commit
						dd18377f93
					
				| @ -18,7 +18,7 @@ define("CLI_LOG_LEVEL", -100); // output everything. | |||||||
| 
 | 
 | ||||||
| // Get the command line option telling us where the webserver is.
 | // Get the command line option telling us where the webserver is.
 | ||||||
| $options = getopt("h:"); | $options = getopt("h:"); | ||||||
| $host = rtrim(trim($options["h"], "/")); | $host = rtrim(trim(trim($options["h"], '"')), "/"); | ||||||
| 
 | 
 | ||||||
| if (empty($host)){ $host = "http://127.0.0.1"; } | if (empty($host)){ $host = "http://127.0.0.1"; } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -18,7 +18,7 @@ error_reporting(E_ALL); | |||||||
| // Get the command line option telling us what database to use.
 | // Get the command line option telling us what database to use.
 | ||||||
| $options = getopt("d:h:"); | $options = getopt("d:h:"); | ||||||
| $db = $options["d"]; | $db = $options["d"]; | ||||||
| $host = rtrim(trim($options["h"], "/")); | $host = rtrim(trim(trim($options["h"], '"')), "/"); | ||||||
| 
 | 
 | ||||||
| if (empty($db)){ die("Error: need to specifiy a database for the test environment."); } | if (empty($db)){ die("Error: need to specifiy a database for the test environment."); } | ||||||
| if (empty($host)){ $host = "http://127.0.0.1"; } | if (empty($host)){ $host = "http://127.0.0.1"; } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user