From 1325e238738e09fd3797a4a70afdc18b3ab5be21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 10 Apr 2009 07:29:13 +0000 Subject: [PATCH] Fix escaping of server name. --- setup/lib/ConfigFile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/lib/ConfigFile.class.php b/setup/lib/ConfigFile.class.php index d9d5e3fd4..a7db0155c 100644 --- a/setup/lib/ConfigFile.class.php +++ b/setup/lib/ConfigFile.class.php @@ -287,7 +287,7 @@ class ConfigFile $ret .= "/* Servers configuration */$crlf\$i = 0;" . $crlf . $crlf; foreach ($c['Servers'] as $id => $server) { $k = preg_replace('/[^A-Za-z0-9_]/', '_', $k); - $ret .= '/* Server: ' . $this->getServerName($id) . " [$id] */" . $crlf + $ret .= '/* Server: ' . strtr($this->getServerName($id), '*/', '-') . " [$id] */" . $crlf . '$i++;' . $crlf; foreach ($server as $k => $v) { $ret .= "\$cfg['Servers'][\$i]['$k'] = "