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
|
||||
|
Reference in New Issue
Block a user