Skip to content

Commit b2409f5

Browse files
committed
trim whitespaces in PMA_HOSTS, PMA_PORTS and PMA_VERBOSES
1 parent 7a1cbfd commit b2409f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

etc/phpmyadmin/config.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
$verbose = array($_ENV['PMA_VERBOSE']);
5353
$ports = array($_ENV['PMA_PORT']);
5454
} elseif (!empty($_ENV['PMA_HOSTS'])) {
55-
$hosts = explode(',', $_ENV['PMA_HOSTS']);
56-
$verbose = explode(',', $_ENV['PMA_VERBOSES']);
57-
$ports = explode(',', $_ENV['PMA_PORTS']);
55+
$hosts = array_map('trim', explode(',', $_ENV['PMA_HOSTS']));
56+
$verbose = array_map('trim', explode(',', $_ENV['PMA_VERBOSES']));
57+
$ports = array_map('trim', explode(',', $_ENV['PMA_PORTS']));
5858
}
5959

6060
/* Server settings */

0 commit comments

Comments
 (0)