Compare commits

...

5 commits

Author SHA1 Message Date
lionel-rowe
05333ec4b1
Merge 18a63b6d7d into 954bc07de1 2025-06-25 15:12:16 -04:00
Marc Alexander
954bc07de1
Merge pull request #6835 from rxu/ticket/17529
[ticket/17529] Fix installer config.php availability checks
2025-06-25 17:43:39 +02:00
rxu
044536dffb
[ticket/17529] Remove unneeded wrapping curly braces
PHPBB-17529
2025-06-21 10:03:52 +07:00
rxu
6ccc6f0383
[ticket/17529] Fix installer config.php availability checks
PHPBB-17529
2025-06-20 22:00:05 +07:00
lionel-rowe
18a63b6d7d [ticket/16985] Fix MYSQLi bug - Incorrect string value for non-BMP chars
PHPBB3-16985
2022-04-13 19:25:55 +01:00
2 changed files with 21 additions and 20 deletions

View file

@ -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)
);
}
/**

View file

@ -145,7 +145,12 @@ class check_filesystem extends \phpbb\install\task_base
// Try to create file if it does not exists
if (!file_exists($path))
{
$fp = @fopen($path, 'w');
if (!is_resource($fp = @fopen($path, 'w')))
{
$exists = $writable = false;
}
else
{
@fclose($fp);
try
{
@ -155,21 +160,14 @@ class check_filesystem extends \phpbb\install\task_base
$exists = true;
}
catch (\phpbb\filesystem\exception\filesystem_exception $e)
{
// Do nothing
}
}
if (file_exists($path))
{
if (!$this->filesystem->is_writable($path))
{
$writable = false;
}
}
else
}
else if (!$this->filesystem->is_writable($path))
{
$exists = $writable = false;
$writable = false;
}
$this->set_test_passed(($exists && $writable) || $failable);