diff --git a/ChangeLog b/ChangeLog index 7af6f63220..a4b6eeb7d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/doc/config.rst b/doc/config.rst index 392b020cfe..aefed69c5d 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -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