summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbambo2011-08-26 02:32:17 +0000
committerbambo2011-08-26 02:32:17 +0000
commitc1ea24495e7d31dc78544b0cd585aa0fbc44cae8 (patch)
tree3bb83f93e86b8315fe74e20fdd4e58911101949a
parent11ac25b6451ae18f883af0155c619494241dc74a (diff)
Fix the bug while use some special charactors such as '*', '?', '$' in password will cause execute pcp command faile issue.
-rw-r--r--command.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.php b/command.php
index 09f972e..01dab2d 100644
--- a/command.php
+++ b/command.php
@@ -54,7 +54,7 @@ function execPcp($command, $num='') {
$param = readPcpInfo();
$param['hostname'] = _PGPOOL2_PCP_HOSTNAME;
- $args = " " . $param['pcp_timeout'] . " " . $param['hostname'] . " " . $param['pcp_port'] . " ". $_SESSION[SESSION_LOGIN_USER] . " " . $_SESSION[SESSION_LOGIN_USER_PASSWORD] . " " . $num;
+ $args = " " . $param['pcp_timeout'] . " " . $param['hostname'] . " " . $param['pcp_port'] . " ". $_SESSION[SESSION_LOGIN_USER] . " '" . $_SESSION[SESSION_LOGIN_USER_PASSWORD] . "' " . $num;
switch ($command) {
case 'PCP_NODE_COUNT':