mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00:00
Compare commits
5 commits
26ef66a8f6
...
2726ed9738
Author | SHA1 | Date | |
---|---|---|---|
|
2726ed9738 | ||
|
30ee379576 | ||
|
081f2391cb | ||
|
0b242b9608 | ||
|
18a63b6d7d |
2 changed files with 5 additions and 2 deletions
|
@ -336,7 +336,10 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
|||
*/
|
||||
function sql_escape($msg)
|
||||
{
|
||||
return @mysqli_real_escape_string($this->db_connect_id, $msg);
|
||||
return @mysqli_real_escape_string(
|
||||
$this->db_connect_id,
|
||||
utf8_encode_ucr($msg)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -575,7 +575,7 @@ class migrator
|
|||
$state['migration_data_state']['_total_time'] : 0.0;
|
||||
$elapsed_time = microtime(true);
|
||||
|
||||
$steps = array_merge($this->helper->reverse_update_data($migration->update_data()), $migration->revert_data());
|
||||
$steps = $migration->revert_data() ?: $this->helper->reverse_update_data($migration->update_data());
|
||||
$result = $this->process_data_step($steps, $state['migration_data_state']);
|
||||
|
||||
$elapsed_time = microtime(true) - $elapsed_time;
|
||||
|
|
Loading…
Add table
Reference in a new issue