forked from extern/egroupware
fix issue pointed out by Andrew McNicol
This commit is contained in:
parent
56efdf86b6
commit
b97024f00e
@ -88,7 +88,7 @@ class setup
|
||||
$this->detection = new setup_detection();
|
||||
$this->process = new setup_process();
|
||||
|
||||
if ($_REQUEST['system_charset']) $this->system_charset = $_REQUEST['system_charset'];
|
||||
if (preg_match('/^[a-z0-9-]+$/i', $_REQUEST['system_charset'])) $this->system_charset = $_REQUEST['system_charset'];
|
||||
|
||||
/* The setup application needs these */
|
||||
if ($html) $this->html = new setup_html();
|
||||
|
@ -336,7 +336,7 @@ switch($GLOBALS['egw_info']['setup']['stage']['db'])
|
||||
{
|
||||
$setup_info = $GLOBALS['egw_setup']->detection->upgrade_exclude($setup_info);
|
||||
// Set the DB's client charset if a system-charset is set
|
||||
if ($_REQUEST['system_charset'])
|
||||
if (preg_match('/^[a-z0-9-]+$/i', $_REQUEST['system_charset']))
|
||||
{
|
||||
$GLOBALS['egw_setup']->system_charset = $_REQUEST['system_charset'];
|
||||
$GLOBALS['egw_setup']->db->Link_ID->SetCharSet($_REQUEST['system_charset']);
|
||||
|
Loading…
Reference in New Issue
Block a user