diff --git a/tests/all_tests.php b/tests/all_tests.php index 6c7092bc..c4779848 100644 --- a/tests/all_tests.php +++ b/tests/all_tests.php @@ -18,7 +18,7 @@ define("CLI_LOG_LEVEL", -100); // output everything. // Get the command line option telling us where the webserver is. $options = getopt("h:"); -$host = rtrim(trim($options["h"], "/")); +$host = rtrim(trim(trim($options["h"], '"')), "/"); if (empty($host)){ $host = "http://127.0.0.1"; } diff --git a/tests/test_install.php b/tests/test_install.php index 6fd0cfec..9184d109 100644 --- a/tests/test_install.php +++ b/tests/test_install.php @@ -18,7 +18,7 @@ error_reporting(E_ALL); // Get the command line option telling us what database to use. $options = getopt("d:h:"); $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($host)){ $host = "http://127.0.0.1"; }