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)$@';
PR: https://github.com/phpmyadmin/phpmyadmin/pull/1520
Implemented with https://github.com/phpmyadmin/phpmyadmin/commit/1b939fb3d3640d3bfe9fac6e023ae74cfc28862c