diff --git a/install/index.php b/install/index.php old mode 100755 new mode 100644 index b7aedf29d..ea88d1877 --- a/install/index.php +++ b/install/index.php @@ -234,28 +234,28 @@
- +
- +
- +
- + If needed
- + Usually 3306 for MySQL or 5432 for PostgreSQL
@@ -265,7 +265,7 @@
- +

@@ -336,7 +336,7 @@ $pdo = pdo_connect($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME, $DB_TYPE, $DB_PORT); if (!$pdo) { - print_error("Unable to connect to database using specified parameters (driver: $DB_TYPE)."); + print_error("Unable to connect to database using specified parameters (driver: " . htmlspecialchars($DB_TYPE) . ")."); exit; } @@ -362,13 +362,13 @@
- - - - - - - + + + + + + +

@@ -382,13 +382,13 @@ - - - - - - - + + + + + + + @@ -440,16 +440,16 @@ - - - - - - - + + + + + + + "; - echo make_config($DB_TYPE, $DB_HOST, $DB_USER, $DB_NAME, $DB_PASS, - $DB_PORT, $SELF_URL_PATH); + echo htmlspecialchars(make_config($DB_TYPE, $DB_HOST, $DB_USER, $DB_NAME, $DB_PASS, + $DB_PORT, $SELF_URL_PATH)); print ""; ?>