summaryrefslogtreecommitdiff
path: root/config.php-dist
diff options
context:
space:
mode:
authorJustAMacUser <[email protected]>2020-04-18 21:33:56 -0400
committerJustAMacUser <[email protected]>2020-04-18 21:33:56 -0400
commit56e16a8d855dafa7ad28273b2720883dba67bcf4 (patch)
treef3d256d89c8d048a66f4931c956ad616f35d8a1c /config.php-dist
parent0d467973dc6a1b93e267015c3d838ec77b59582e (diff)
Escape user-defined values during installation.
Diffstat (limited to 'config.php-dist')
-rwxr-xr-xconfig.php-dist16
1 files changed, 8 insertions, 8 deletions
diff --git a/config.php-dist b/config.php-dist
index 244390b98..e83fdcfdc 100755
--- a/config.php-dist
+++ b/config.php-dist
@@ -3,12 +3,12 @@
// *** Database configuration (important!) ***
// *******************************************
- define('DB_TYPE', "pgsql"); // or mysql
- define('DB_HOST', "localhost");
- define('DB_USER', "fox");
- define('DB_NAME', "fox");
- define('DB_PASS', "XXXXXX");
- define('DB_PORT', ''); // usually 5432 for PostgreSQL, 3306 for MySQL
+ define('DB_TYPE', "%DB_TYPE"); // pgsql or mysql
+ define('DB_HOST', "%DB_HOST");
+ define('DB_USER', "%DB_USER");
+ define('DB_NAME', "%DB_NAME");
+ define('DB_PASS', "%DB_PASS");
+ define('DB_PORT', '%DB_PORT'); // usually 5432 for PostgreSQL, 3306 for MySQL
define('MYSQL_CHARSET', 'UTF8');
// Connection charset for MySQL. If you have a legacy database and/or experience
@@ -18,9 +18,9 @@
// *** Basic settings (important!) ***
// ***********************************
- define('SELF_URL_PATH', 'https://example.org/tt-rss/');
+ define('SELF_URL_PATH', '%SELF_URL_PATH');
// This should be set to a fully qualified URL used to access
- // your tt-rss instance over the net.
+ // your tt-rss instance over the net, such as: https://example.org/tt-rss/
// The value should be a constant string literal. Please don't use
// PHP server variables here - you might introduce security
// issues on your install and cause hard to debug problems.