diff options
author | bambo | 2011-08-26 02:32:17 +0000 |
---|---|---|
committer | bambo | 2011-08-26 02:32:17 +0000 |
commit | c1ea24495e7d31dc78544b0cd585aa0fbc44cae8 (patch) | |
tree | 3bb83f93e86b8315fe74e20fdd4e58911101949a | |
parent | 11ac25b6451ae18f883af0155c619494241dc74a (diff) |
Fix the bug while use some special charactors such as '*', '?', '$' in password will cause execute pcp command faile issue.
-rw-r--r-- | command.php | 2 |
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': |