bug fixed, escape language string before insert
This commit is contained in:
parent
91276709b4
commit
e2bf31e482
1 changed files with 6 additions and 2 deletions
|
@ -348,8 +348,12 @@ INSERT INTO '.$prefixeTable.'config (param,value,comment)
|
||||||
pwg_query($query);
|
pwg_query($query);
|
||||||
|
|
||||||
conf_update_param('piwigo_db_version', get_branch_from_version(PHPWG_VERSION));
|
conf_update_param('piwigo_db_version', get_branch_from_version(PHPWG_VERSION));
|
||||||
conf_update_param('gallery_title', l10n('Just another Piwigo gallery'));
|
conf_update_param('gallery_title', pwg_db_real_escape_string(l10n('Just another Piwigo gallery')));
|
||||||
conf_update_param('page_banner', '<h1>%gallery_title%</h1>'."\n\n<p>".l10n('Welcome to my photo gallery').'</p>');
|
|
||||||
|
conf_update_param(
|
||||||
|
'page_banner',
|
||||||
|
'<h1>%gallery_title%</h1>'."\n\n<p>".pwg_db_real_escape_string(l10n('Welcome to my photo gallery')).'</p>'
|
||||||
|
);
|
||||||
|
|
||||||
// fill languages table
|
// fill languages table
|
||||||
foreach ($languages->fs_languages as $language_code => $fs_language)
|
foreach ($languages->fs_languages as $language_code => $fs_language)
|
||||||
|
|
Loading…
Reference in a new issue