Skip to content

Commit 996e6a6

Browse files
committed
New upstream release 4.6.1.0
1 parent 2923054 commit 996e6a6

File tree

111 files changed

+889
-420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+889
-420
lines changed

ChangeLog

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
phpMyAdmin - ChangeLog
22
======================
33

4+
4.6.1 (2016-05-02)
5+
- issue #12120 PMA_Util not found in insert_edit.lib.php
6+
- issue #12118 Fixed activation of some languages
7+
- issue #12121 Fixed error in 3NF step of normalization
8+
- issue #12135 Fix offering JSON datatype in incompatible MySQL versions
9+
- issue #12132 Can not open table with JSON field
10+
- issue #12125 Cannot highlight a column if I scroll down from the top of the table
11+
- issue #12154 Fixed possible PHP error in SQL parser
12+
- issue #12029 Fixed SQL quoting in SQL export
13+
- issue #12129 Improve performance of database structure page
14+
- issue #12159 Fix PHP error if user did unpack new version over old one
15+
- issue #12165 Fix parsing of expression 0
16+
- issue #12146 Document setup with Google Cloud SQL
17+
- issue #12197 Fix parsing of queries with double \
18+
- issue #12202 Fixed setting of language from user configuration
19+
- issue #12200 Fixed check for ndb version
20+
- issue #12206 Fixed loading of configuration file
21+
- issue #12204 Check if sessions are working and report failures
22+
- issue #12211 non-clickable initial letter for users / and can't modify users with MySQL 5.7.12
23+
- issue #12215 Fixed config tab persistence errors
24+
- issue #12217 Fixed javascript erros on user creation
25+
- issue #12144 Fixed parsing of some AS clauses
26+
- issue #12205 Fixed parsing of FULL OUTER JOIN queries
27+
- issue #12171 Fixed editing of VIEW structure
28+
- issue #12208 Avoid printing executed queries on import
29+
430
4.6.0.0 (2016-03-22)
531
+ issue #11456 Disabled storage engines
632
+ issue #11479 Allow setting routine wise privileges

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
phpMyAdmin - Readme
22
===================
33

4-
Version 4.6.0
4+
Version 4.6.1
55

66
A web interface for MySQL and MariaDB.
77

RELEASE-DATE-4.6.0

Lines changed: 0 additions & 1 deletion
This file was deleted.

RELEASE-DATE-4.6.1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Mon May 2 21:23:35 UTC 2016

build.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<arg line="${source_comma_sep}
5656
xml
5757
codesize,design,naming,unusedcode
58-
--exclude test,build,tcpdf,php-gettext,bfShapeFiles,PMAStandard,phpseclib,recaptchalib.php,swekey.php,vendor,sql-parser
58+
--exclude test,build,tcpdf,php-gettext,bfShapeFiles,phpseclib,recaptchalib.php,swekey.php,vendor,sql-parser
5959
--reportfile '${basedir}/build/logs/pmd.xml'" />
6060
</exec>
6161
</target>
@@ -64,7 +64,6 @@
6464
<exec executable="phpcpd">
6565
<arg line="--log-pmd '${basedir}/build/logs/pmd-cpd.xml'
6666
--exclude test
67-
--exclude PMAStandard
6867
--exclude build
6968
--exclude vendor
7069
--exclude libraries/tcpdf
@@ -82,7 +81,6 @@
8281
<exec executable="phploc">
8382
<arg line="--log-csv '${basedir}/build/logs/phploc.csv'
8483
--exclude test
85-
--exclude PMAStandard
8684
--exclude build
8785
--exclude vendor
8886
--exclude libraries/tcpdf
@@ -96,10 +94,16 @@
9694
</exec>
9795
</target>
9896

99-
<target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer excluding third party libraries">
97+
<target name="phpcs-config" description="PHPCS configuration tweaking">
98+
<exec executable="phpcs">
99+
<arg line="--config-set installed_paths ${basedir}/vendor/phpmyadmin/coding-standard" />
100+
</exec>
101+
</target>
102+
103+
<target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer excluding third party libraries" depends="phpcs-config">
100104
<exec executable="phpcs">
101105
<arg line="
102-
--ignore=*/php-gettext/*,*/vendor/*,*/tcpdf/*,*/canvg/*,*/codemirror/*,*/openlayers/*,*/jquery/*,*/jqplot/*,*/build/*,*/bfShapeFiles/*,*/PMAStandard/*,*/phpseclib/*,*/recaptcha/*,*/swekey/*,*/sql-parser/*
106+
--ignore=*/php-gettext/*,*/vendor/*,*/tcpdf/*,*/canvg/*,*/codemirror/*,*/openlayers/*,*/jquery/*,*/jqplot/*,*/build/*,*/bfShapeFiles/*,*/phpseclib/*,*/recaptcha/*,*/swekey/*,*/sql-parser/*
103107
--report=checkstyle
104108
--extensions=php
105109
--report-file='${basedir}/build/logs/checkstyle.xml'

changelog.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,76 +55,76 @@
5555
$faq_url = 'http://docs.phpmyadmin.net/en/latest/faq.html';
5656

5757
$replaces = array(
58-
'@(http://[./a-zA-Z0-9.-_-]*[/a-zA-Z0-9_])@'
59-
=> '<a href="\\1">\\1</a>',
58+
'@(https?://[./a-zA-Z0-9.-_-]*[/a-zA-Z0-9_])@'
59+
=> '<a href="url.php?url=\\1">\\1</a>',
6060

6161
// sourceforge users
6262
'/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +&lt;(.*)@users.sourceforge.net&gt;/i'
63-
=> '\\1 <a href="https://sourceforge.net/users/\\3/">\\2</a>',
63+
=> '\\1 <a href="url.php?url=https://sourceforge.net/users/\\3/">\\2</a>',
6464
'/thanks to ([^\(\r\n]+) \(([-\w]+)\)/i'
65-
=> 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
65+
=> 'thanks to <a href="url.php?url=https://sourceforge.net/users/\\2/">\\1</a>',
6666
'/thanks to ([^\(\r\n]+) -\s+([-\w]+)/i'
67-
=> 'thanks to <a href="https://sourceforge.net/users/\\2/">\\1</a>',
67+
=> 'thanks to <a href="url.php?url=https://sourceforge.net/users/\\2/">\\1</a>',
6868

6969
// mail address
7070
'/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +&lt;(.*@.*)&gt;/i'
7171
=> '\\1 <a href="mailto:\\3">\\2</a>',
7272

7373
// linking patches
7474
'/patch\s*#?([0-9]{6,})/i'
75-
=> '<a href="' . $tracker_url . '">patch #\\1</a>',
75+
=> '<a href="url.php?url=' . $tracker_url . '">patch #\\1</a>',
7676

7777
// linking RFE
7878
'/(?:rfe|feature)\s*#?([0-9]{6,})/i'
79-
=> '<a href="https://sourceforge.net/support/tracker.php?aid=\\1">RFE #\\1</a>',
79+
=> '<a href="url.php?url=https://sourceforge.net/support/tracker.php?aid=\\1">RFE #\\1</a>',
8080

8181
// linking files
8282
'/(\s+)([\\/a-z_0-9\.]+\.(?:php3?|html|pl|js|sh))/i'
83-
=> '\\1<a href="' . $github_url . 'commits/HEAD/\\2">\\2</a>',
83+
=> '\\1<a href="url.php?url=' . $github_url . 'commits/HEAD/\\2">\\2</a>',
8484

8585
// FAQ entries
8686
'/FAQ ([0-9]+)\.([0-9a-z]+)/i'
87-
=> '<a href="' . $faq_url . '#faq\\1-\\2">FAQ \\1.\\2</a>',
87+
=> '<a href="url.php?url=' . $faq_url . '#faq\\1-\\2">FAQ \\1.\\2</a>',
8888

8989
// linking bugs
9090
'/bug\s*#?([0-9]{6,})/i'
91-
=> '<a href="https://sourceforge.net/support/tracker.php?aid=\\1">bug #\\1</a>',
91+
=> '<a href="url.php?url=https://sourceforge.net/support/tracker.php?aid=\\1">bug #\\1</a>',
9292

9393
// all other 6+ digit numbers are treated as bugs
9494
'/(?<!bug|RFE|patch) #?([0-9]{6,})/i'
95-
=> '<a href="' . $tracker_url . '">bug #\\1</a>',
95+
=> '<a href="url.php?url=' . $tracker_url . '">bug #\\1</a>',
9696

9797
// GitHub issues
9898
'/issue\s*#?([0-9]{4,5}) /i'
99-
=> '<a href="' . $github_url . 'issues/\\1">issue #\\1</a> ',
99+
=> '<a href="url.php?url=' . $github_url . 'issues/\\1">issue #\\1</a> ',
100100

101101
// transitioned SF.net project bug/rfe/patch links
102102
// by the time we reach 6-digit numbers, we can probably retire the above links
103103
'/patch\s*#?([0-9]{4,5}) /i'
104-
=> '<a href="' . $tracker_url_patch . '">patch #\\1</a> ',
104+
=> '<a href="url.php?url=' . $tracker_url_patch . '">patch #\\1</a> ',
105105
'/(?:rfe|feature)\s*#?([0-9]{4,5}) /i'
106-
=> '<a href="' . $tracker_url_rfe . '">RFE #\\1</a> ',
106+
=> '<a href="url.php?url=' . $tracker_url_rfe . '">RFE #\\1</a> ',
107107
'/bug\s*#?([0-9]{4,5}) /i'
108-
=> '<a href="' . $tracker_url_bug . '">bug #\\1</a> ',
108+
=> '<a href="url.php?url=' . $tracker_url_bug . '">bug #\\1</a> ',
109109
'/(?<!bug|RFE|patch) #?([0-9]{4,5}) /i'
110-
=> '<a href="' . $tracker_url_bug . '">bug #\\1</a> ',
110+
=> '<a href="url.php?url=' . $tracker_url_bug . '">bug #\\1</a> ',
111111

112112
// CVE/CAN entries
113113
'/((CAN|CVE)-[0-9]+-[0-9]+)/'
114-
=> '<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=\\1">\\1</a>',
114+
=> '<a href="url.php?url=https://cve.mitre.org/cgi-bin/cvename.cgi?name=\\1">\\1</a>',
115115

116116
// PMASAentries
117117
'/(PMASA-[0-9]+-[0-9]+)/'
118-
=> '<a href="https://www.phpmyadmin.net/security/\\1/">\\1</a>',
118+
=> '<a href="url.php?url=https://www.phpmyadmin.net/security/\\1/">\\1</a>',
119119

120120
// Highlight releases (with links)
121121
'/([0-9]+)\.([0-9]+)\.([0-9]+)\.0 (\([0-9-]+\))/'
122122
=> '<a name="\\1_\\2_\\3"></a>'
123-
. '<a href="' . $github_url . 'commits/RELEASE_\\1_\\2_\\3">'
123+
. '<a href="url.php?url=' . $github_url . 'commits/RELEASE_\\1_\\2_\\3">'
124124
. '\\1.\\2.\\3.0 \\4</a>',
125125
'/([0-9]+)\.([0-9]+)\.([0-9]+)\.([1-9][0-9]*) (\([0-9-]+\))/'
126126
=> '<a name="\\1_\\2_\\3_\\4"></a>'
127-
. '<a href="' . $github_url . 'commits/RELEASE_\\1_\\2_\\3_\\4">'
127+
. '<a href="url.php?url=' . $github_url . 'commits/RELEASE_\\1_\\2_\\3_\\4">'
128128
. '\\1.\\2.\\3.\\4 \\5</a>',
129129

130130
// Highlight releases (not linkable)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "imscp/phpmyadmin",
33
"description": "iMSCP tools - PhpMyadmin - MySQL administration tool",
4-
"version": "4.6.0.0",
4+
"version": "4.6.1.0",
55
"authors": [
66
{
77
"name": "The phpMyAdmin Team",

db_structure.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@
1515
require_once 'libraries/common.inc.php';
1616
require_once 'libraries/db_common.inc.php';
1717

18-
list(
19-
$tables,
20-
$num_tables,
21-
$total_num_tables,
22-
$sub_part,
23-
$is_show_stats,
24-
$db_is_system_schema,
25-
$tooltip_truename,
26-
$tooltip_aliasname,
27-
$pos
28-
) = Util::getDbInfo($GLOBALS['db'], isset($sub_part) ? $sub_part : '');
29-
3018
$container = libraries\di\Container::getDefaultContainer();
3119
$container->factory('PMA\libraries\controllers\database\DatabaseStructureController');
3220
$container->alias(
@@ -36,16 +24,10 @@
3624
$container->set('PMA\libraries\Response', Response::getInstance());
3725
$container->alias('response', 'PMA\libraries\Response');
3826

39-
global $db, $pos, $db_is_system_schema, $total_num_tables, $tables, $num_tables;
4027
/* Define dependencies for the concerned controller */
4128
$dependency_definitions = array(
4229
'db' => $db,
4330
'url_query' => &$GLOBALS['url_query'],
44-
'pos' => $pos,
45-
'db_is_system_schema' => $db_is_system_schema,
46-
'num_tables' => $num_tables,
47-
'total_num_tables' => $total_num_tables,
48-
'tables' => $tables,
4931
);
5032

5133
/** @var DatabaseStructureController $controller */

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
# built documents.
5252
#
5353
# The short X.Y version.
54-
version = '4.6.0'
54+
version = '4.6.1'
5555
# The full version, including alpha/beta/rc tags.
5656
release = version
5757

doc/config.rst

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ Server connection settings
254254

255255
We strongly recommend the ``'mysqli'`` extension when using this option.
256256

257+
.. seealso:: :ref:`example-google-ssl`
258+
257259
.. config:option:: $cfg['Servers'][$i]['ssl_key']
258260
259261
:type: string
@@ -267,20 +269,26 @@ Server connection settings
267269
268270
$cfg['Servers'][$i]['ssl_key'] = '/etc/mysql/server-key.pem';
269271
272+
.. seealso:: :ref:`example-google-ssl`
273+
270274
.. config:option:: $cfg['Servers'][$i]['ssl_cert']
271275
272276
:type: string
273277
:default: NULL
274278

275279
Path to the cert file when using SSL for connecting to the MySQL server.
276280

281+
.. seealso:: :ref:`example-google-ssl`
282+
277283
.. config:option:: $cfg['Servers'][$i]['ssl_ca']
278284
279285
:type: string
280286
:default: NULL
281287

282288
Path to the CA file when using SSL for connecting to the MySQL server.
283289

290+
.. seealso:: :ref:`example-google-ssl`
291+
284292
.. config:option:: $cfg['Servers'][$i]['ssl_ca_path']
285293
286294
:type: string
@@ -300,14 +308,24 @@ Server connection settings
300308
:type: boolean
301309
:default: true
302310

311+
.. versionadded:: 4.6.0
312+
313+
This is supported since phpMyAdmin 4.6.0.
314+
303315
If your PHP install uses the MySQL Native Driver (mysqlnd), your
304316
MySQL server is 5.6 or later, and your SSL certificate is self-signed,
305317
there is a chance your SSL connection will fail due to validation.
306318
Setting this to ``false`` will disable the validation check.
307319

320+
Since PHP 5.6.0 it also verifies whether server name matches CN of it's
321+
certificate. There is currently no way to disable just this check without
322+
disabling complete SSL verification.
323+
308324
.. note::
309325

310-
This flag only works with PHP 5.6.16 or later
326+
This flag only works with PHP 5.6.16 or later.
327+
328+
.. seealso:: :ref:`example-google-ssl`
311329

312330
.. config:option:: $cfg['Servers'][$i]['connect_type']
313331
@@ -2885,3 +2903,52 @@ Developer
28852903

28862904
Enable to let server present itself as demo server.
28872905
This is used for <http://demo.phpmyadmin.net/>.
2906+
2907+
2908+
Examples
2909+
--------
2910+
2911+
See following configuration snippets for usual setups of phpMyAdmin.
2912+
2913+
.. _example-google-ssl:
2914+
2915+
Google Cloud SQL with SSL
2916+
+++++++++++++++++++++++++
2917+
2918+
To connect to Google Could SQL, you currently need to disable certificate
2919+
verification. This is caused by the certficate being issued for CN matching
2920+
your instance name, but you connect to an IP address and PHP tries to match
2921+
these two. With verfication you end up with error message like::
2922+
2923+
Peer certificate CN=`api-project-851612429544:pmatest' did not match expected CN=`8.8.8.8'
2924+
2925+
.. warning::
2926+
2927+
With disabled verification your traffic is encrypted, but you're open to
2928+
man in the middle attacks.
2929+
2930+
To connect phpMyAdmin to Google Cloud SQL using SSL download the client and
2931+
server certificates and tell phpMyAdmin to use them:
2932+
2933+
.. code-block:: php
2934+
2935+
// IP address of your instance
2936+
$cfg['Servers'][2]['host'] = '8.8.8.8';
2937+
// Use SSL for connection
2938+
$cfg['Servers'][$i]['ssl'] = true;
2939+
// Client secret key
2940+
$cfg['Servers'][$i]['ssl_key'] = '../client-key.pem';
2941+
// Client certificate
2942+
$cfg['Servers'][$i]['ssl_cert'] = '../client-cert.pem';
2943+
// Server certification authority
2944+
$cfg['Servers'][$i]['ssl_ca'] = '../server-ca.pem';
2945+
// Disable SSL verification (see above note)
2946+
$cfg['Servers'][$i]['ssl_verify'] = false;
2947+
2948+
.. seealso::
2949+
2950+
:config:option:`$cfg['Servers'][$i]['ssl']`,
2951+
:config:option:`$cfg['Servers'][$i]['ssl_key']`,
2952+
:config:option:`$cfg['Servers'][$i]['ssl_cert']`,
2953+
:config:option:`$cfg['Servers'][$i]['ssl_ca']`,
2954+
:config:option:`$cfg['Servers'][$i]['ssl_verify']`

0 commit comments

Comments
 (0)