Merge branch 'QA_4_6'

This commit is contained in:
Michal Čihař 2016-09-26 13:36:25 +02:00
commit 8c253e91f6
2 changed files with 25 additions and 0 deletions

View File

@ -73,6 +73,7 @@ phpMyAdmin - ChangeLog
- issue #12382 Bug in zoom search
- issue #12321 Assign LIMIT clause only to syntactically correct queries
- issue #12461 Can't Execute SQL With Sub-Query Due To "LIMIT 0,25" Inserted At Wrong Place
- issue #12511 Clarify documentation on ArbitraryServerRegexp
4.6.4 (2016-08-16)
- issue [security] Weaknesses with cookie encryption, see PMASA-2016-29

View File

@ -1714,6 +1714,30 @@ Cookie authentication options
to the given regular expression. The regular expression must be enclosed
with a delimiter character.
It is recommended to include start and end symbols in the regullar
expression, so that you can avoid partial matches on the string.
**Examples:**
.. code-block:: php
// Allow connection to three listed servers:
$cfg['ArbitraryServerRegexp'] = '/^(server|another|yetdifferent)$/';
// Allow connection to range of IP addresses:
$cfg['ArbitraryServerRegexp'] = '@^192.168.0.[0-9]{1,}$@';
// Allow connection to server name ending with -mysql:
$cfg['ArbitraryServerRegexp'] = '@^[^:]\-mysql$@';
.. note::
The whole server name is matched, it can include port as well. Due to
way MySQL is permissive in connection parameters, it is possible to use
connection strings as ```server:3306-mysql```. This can be used to
bypass regullar expression by the suffix, while connecting to another
server.
.. config:option:: $cfg['CaptchaLoginPublicKey']
:type: string