Added escaping for install in config.tpl
This commit is contained in:
parent
3181204228
commit
cd581a9d29
|
@ -64,6 +64,9 @@ function smarty_modifier_markdown($md, $clear = false) {
|
|||
function smarty_modifier_resource($link) {
|
||||
return Utils::get_server_name() . $link;
|
||||
}
|
||||
function smarty_modifier_addslashes_single_quote($string) {
|
||||
return addcslashes($string, '\\\'');
|
||||
}
|
||||
|
||||
function smarty_modifier_html($html) {
|
||||
return Utils::htmlEscape($html);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
// const APP_URL = '<www.mydomain.fr>';
|
||||
|
||||
// Application name
|
||||
const NOMAPPLICATION = '{$appName}';
|
||||
const NOMAPPLICATION = '{$appName|addslashes_single_quote}';
|
||||
|
||||
// Database administrator email
|
||||
const ADRESSEMAILADMIN = '{$appMail}';
|
||||
|
@ -38,7 +38,7 @@ const DB_CONNECTION_STRING = '{$dbConnectionString}';
|
|||
const DB_USER= '{$dbUser}';
|
||||
|
||||
// Database password
|
||||
const DB_PASSWORD = '{$dbPassword}';
|
||||
const DB_PASSWORD = '{$dbPassword|addslashes_single_quote}';
|
||||
|
||||
// Table name prefix
|
||||
const TABLENAME_PREFIX = '{$dbPrefix}';
|
||||
|
|
Loading…
Reference in New Issue
Block a user