From: Yugo Nagata Date: Tue, 25 Jun 2013 04:30:06 +0000 (+0900) Subject: Fix bug that heartbeat_destination paramater is written to pgpool.conf without quotation X-Git-Tag: V3_3_RC1~10 X-Git-Url: http://git.postgresql.org/gitweb/static/session/%7B%7Bsession.id%7D%7D-%7B%7Bsession.title%7Cslugify%7D%7D?a=commitdiff_plain;h=8f0a7278a3aa7175b3ba58b067ad9ace61e3f903;p=pgpooladmin.git Fix bug that heartbeat_destination paramater is written to pgpool.conf without quotation --- diff --git a/pgconfig.php b/pgconfig.php index 3ad10e4..aee714e 100644 --- a/pgconfig.php +++ b/pgconfig.php @@ -463,7 +463,7 @@ function writeConfigFile($configValue, $pgpoolConfigParam) if (isset($configValue['heartbeat_destination'])) { for ($i = 0; $i < count($configValue['heartbeat_destination']); $i++) { - $configFile[] = "heartbeat_destination$i = " . $configValue['heartbeat_destination'][$i] . "\n"; + $configFile[] = "heartbeat_destination$i = '" . $configValue['heartbeat_destination'][$i] . "'\n"; $configFile[] = "heartbeat_destination_port$i = " . $configValue['heartbeat_destination_port'][$i] . "\n"; $configFile[] = "heartbeat_device$i = '" . $configValue['heartbeat_device'][$i] . "'\n"; }