#1441 Add regexp match when using AllowArbitraryServer

Needs_decision
open
nobody
None
5
2014-08-17
2013-07-17
Olivier Doucet
No

When using config option 'AllowArbitraryServer', any server can be accessed through PMA.
But when this option is used, often servers follow the same form :
- 192.168.0.X
- XXX-mysql
- etc.

It would be useful to add a config option labeled 'ArbitraryServerRegexp' that would consist of a regular expression that the server name must match, if this config option is present.
Examples :

$cfg['ArbitraryServerRegexp'] = '@^192.168.0.[0-9]{1,}$@';
$cfg['ArbitraryServerRegexp'] = '@\-mysql$@';
$cfg['ArbitraryServerRegexp'] = '@^(server1|server2|server3)$@';

Discussion