mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Specify encoding for PHP 5.6 with invalid default_charset (fixes #421)
This commit is contained in:
@@ -78,7 +78,7 @@ function charset($connection) {
|
||||
* @return string
|
||||
*/
|
||||
function h($string) {
|
||||
return str_replace("\0", "�", htmlspecialchars($string, ENT_QUOTES));
|
||||
return str_replace("\0", "�", htmlspecialchars($string, ENT_QUOTES, 'utf-8'));
|
||||
}
|
||||
|
||||
/** Escape for TD
|
||||
|
@@ -3,7 +3,9 @@ Fix reading routine column collations
|
||||
Unlock session in alter database
|
||||
Make master key unreadable to others (bug #410)
|
||||
Fix edit by long non-utf8 string
|
||||
Specify encoding for PHP 5.6 with invalid default_charset
|
||||
MySQL: Use utf8mb4 if available
|
||||
Elasticsearch: Use where in select
|
||||
Danish translation
|
||||
|
||||
Adminer 4.1.0 (released 2014-04-18)
|
||||
|
Reference in New Issue
Block a user