Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorapoorv <apoorvkhare007@gmail.com>2019-03-25 10:06:13 +0300
committerapoorv <apoorvkhare007@gmail.com>2019-04-06 15:57:11 +0300
commiteca65975b3a54f36c59c6152f3a7559c83f6efe0 (patch)
treebf28bafea46a956fc3c0d3363120ec70eacd3779 /index.php
parent8282a7f1b64e75ac05451208b05dfb2f8d2a1eb3 (diff)
Fixes #15059 Server charset hardcoded in index.php
Signed-off-by: Apoorv Khare <apoorvkhare007@gmail.com>
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/index.php b/index.php
index 2274e69122..0276d7e1e0 100644
--- a/index.php
+++ b/index.php
@@ -369,12 +369,17 @@ if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) {
echo ' <li id="li_select_mysql_charset">';
echo ' ' , __('Server charset:') , ' '
. ' <span lang="en" dir="ltr">';
- $unicode = Charsets::$mysql_charset_map['utf-8'];
+
+ $charset = Charsets::getCharset(
+ $GLOBALS['dbi'],
+ $GLOBALS['cfg']['Server']['DisableIS']
+ );
$charsets = Charsets::getMySQLCharsetsDescriptions(
$GLOBALS['dbi'],
$GLOBALS['cfg']['Server']['DisableIS']
);
- echo ' ' , $charsets[$unicode], ' (' . $unicode, ')';
+
+ echo ' ' , $charsets[$charset], ' (' . $charset, ')';
echo ' </span>'
. ' </li>'
. ' </ul>'