mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 00:40:56 +02:00
[ticket/15869] Allow multibyte characters in more variables
PHPBB3-15869
This commit is contained in:
@ -78,10 +78,10 @@ class obtain_database_data extends \phpbb\install\task_base implements \phpbb\in
|
|||||||
$dbms = $this->io_handler->get_input('dbms', '');
|
$dbms = $this->io_handler->get_input('dbms', '');
|
||||||
$dbhost = $this->io_handler->get_input('dbhost', '', true);
|
$dbhost = $this->io_handler->get_input('dbhost', '', true);
|
||||||
$dbport = $this->io_handler->get_input('dbport', '');
|
$dbport = $this->io_handler->get_input('dbport', '');
|
||||||
$dbuser = $this->io_handler->get_input('dbuser', '');
|
$dbuser = $this->io_handler->get_input('dbuser', '', true);
|
||||||
$dbpasswd = $this->io_handler->get_raw_input('dbpasswd', '');
|
$dbpasswd = $this->io_handler->get_raw_input('dbpasswd', '', true);
|
||||||
$dbname = $this->io_handler->get_input('dbname', '');
|
$dbname = $this->io_handler->get_input('dbname', '', true);
|
||||||
$table_prefix = $this->io_handler->get_input('table_prefix', '');
|
$table_prefix = $this->io_handler->get_input('table_prefix', '', true);
|
||||||
|
|
||||||
// Check database data
|
// Check database data
|
||||||
$user_data_vaild = $this->check_database_data($dbms, $dbhost, $dbport, $dbuser, $dbpasswd, $dbname, $table_prefix);
|
$user_data_vaild = $this->check_database_data($dbms, $dbhost, $dbport, $dbuser, $dbpasswd, $dbname, $table_prefix);
|
||||||
|
@ -81,7 +81,7 @@ class obtain_server_data extends \phpbb\install\task_base implements \phpbb\inst
|
|||||||
$force_server_vars = $this->io_handler->get_input('force_server_vars', 0);
|
$force_server_vars = $this->io_handler->get_input('force_server_vars', 0);
|
||||||
$server_name = $this->io_handler->get_input('server_name', $server_name, true);
|
$server_name = $this->io_handler->get_input('server_name', $server_name, true);
|
||||||
$server_port = $this->io_handler->get_input('server_port', $server_port);
|
$server_port = $this->io_handler->get_input('server_port', $server_port);
|
||||||
$script_path = $this->io_handler->get_input('script_path', $script_path);
|
$script_path = $this->io_handler->get_input('script_path', $script_path, true);
|
||||||
|
|
||||||
// Clean up script path
|
// Clean up script path
|
||||||
if ($script_path !== '/')
|
if ($script_path !== '/')
|
||||||
|
@ -85,10 +85,10 @@ class obtain_update_ftp_data extends task_base
|
|||||||
$method = $methods[0];
|
$method = $methods[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
$ftp_host = $this->iohandler->get_input('ftp_host', '');
|
$ftp_host = $this->iohandler->get_input('ftp_host', '', true);
|
||||||
$ftp_user = $this->iohandler->get_input('ftp_user', '');
|
$ftp_user = $this->iohandler->get_input('ftp_user', '', true);
|
||||||
$ftp_pass = htmlspecialchars_decode($this->iohandler->get_input('ftp_pass', ''));
|
$ftp_pass = htmlspecialchars_decode($this->iohandler->get_input('ftp_pass', '', true));
|
||||||
$ftp_path = $this->iohandler->get_input('ftp_path', '');
|
$ftp_path = $this->iohandler->get_input('ftp_path', '', true);
|
||||||
$ftp_port = $this->iohandler->get_input('ftp_port', 21);
|
$ftp_port = $this->iohandler->get_input('ftp_port', 21);
|
||||||
$ftp_time = $this->iohandler->get_input('ftp_timeout', 10);
|
$ftp_time = $this->iohandler->get_input('ftp_timeout', 10);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user