summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-24 04:38:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-24 04:38:36 +0000
commit537bc12e145e36ad3c60b49a6481ed0542df0356 (patch)
tree603ff0de52719d5bab062180ddf0d86f604eac4a
parent71845120007b42ec42cae0ed7dacc44c31e58a0d (diff)
downloadpfsense-537bc12e145e36ad3c60b49a6481ed0542df0356.zip
pfsense-537bc12e145e36ad3c60b49a6481ed0542df0356.tar.gz
Really allow command arguments from pfSsh.php
-rw-r--r--etc/phpshellsessions/cvssync5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync
index 9cea3fe..51d3d9f 100644
--- a/etc/phpshellsessions/cvssync
+++ b/etc/phpshellsessions/cvssync
@@ -44,8 +44,9 @@ global $command_split;
$branches = array("HEAD" => "Main development branch",
"RELENG_1" => "1.2 Release branch",
"RELENG_1_2" => "1.3 development branch");
-if($command_split[3]) {
- $branch = $command_split[3];
+
+if($command_split[2]) {
+ $branch = $command_split[2];
} else {
if(!$argv[3]) {
echo "\nPlease select which branch you would like:\n\n";
OpenPOWER on IntegriCloud