Merge pull request #8667 from MrPetovan/bug/8664-config-template-nofilter

Remove HTML escaping in config file template, add quote escaping
This commit is contained in:
Michael Vogel 2020-05-20 08:19:35 +02:00 committed by GitHub
commit 37d95f7727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,10 +7,10 @@
return [
'database' => [
'hostname' => '{{$dbhost}}',
'username' => '{{$dbuser}}',
'password' => '{{$dbpass}}',
'database' => '{{$dbdata}}',
'hostname' => '{{$dbhost|escape:'quotes' nofilter}}',
'username' => '{{$dbuser|escape:'quotes' nofilter}}',
'password' => '{{$dbpass|escape:'quotes' nofilter}}',
'database' => '{{$dbdata|escape:'quotes' nofilter}}',
'charset' => 'utf8mb4',
],
@ -21,19 +21,19 @@ return [
// ****************************************************************
'config' => [
'php_path' => '{{$phpath}}',
'admin_email' => '{{$adminmail}}',
'php_path' => '{{$phpath|escape:'quotes' nofilter}}',
'admin_email' => '{{$adminmail|escape:'quotes' nofilter}}',
'sitename' => 'Friendica Social Network',
'hostname' => '{{$hostname}}',
'hostname' => '{{$hostname|escape:'quotes' nofilter}}',
'register_policy' => \Friendica\Module\Register::OPEN,
'max_import_size' => 200000,
],
'system' => [
'urlpath' => '{{$urlpath}}',
'url' => '{{$baseurl}}',
'ssl_policy' => {{$sslpolicy}},
'basepath' => '{{$basepath}}',
'default_timezone' => '{{$timezone}}',
'language' => '{{$language}}',
'urlpath' => '{{$urlpath|escape:'quotes' nofilter}}',
'url' => '{{$baseurl|escape:'quotes' nofilter}}',
'ssl_policy' => {{$sslpolicy|escape:'quotes' nofilter}},
'basepath' => '{{$basepath|escape:'quotes' nofilter}}',
'default_timezone' => '{{$timezone|escape:'quotes' nofilter}}',
'language' => '{{$language|escape:'quotes' nofilter}}',
],
];