Check-in [101e430ec6]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fixed issue calling Fossil binary to unset SSH command
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:101e430ec621cdae0ca7ea4b0179c0f4b746f02d
User & Date: rkeene 2017-03-16 16:29:53
Context
2017-03-16
16:32
Fixed missing semicolons Leaf check-in: f6600ad1a1 user: rkeene tags: trunk
16:29
Fixed issue calling Fossil binary to unset SSH command check-in: 101e430ec6 user: rkeene tags: trunk
16:07
Added web interface for creating SHA3 repos check-in: 96b4a74064 user: rkeene tags: trunk
Changes

Changes to nano/fossil.php.

275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
                $outputstr = "Invalid URL";
                return false;
            }
        }

        if (file_exists("{$this->path}{$repo}.fossil")) {
            # Ensure that no non-default SSH command can be used for a pull
            exec("timeout 3600 /usr/local/bin/fossil unset ssh-command -R " . escapeshellarg("{$this->path}{$repo}.fossil") . " 2>&1",
              $output, $return);
            if ($return !== 0) {
                return false;
            }

            if ($url == '') {
                exec($this->getFossilCommand(3600) . " pull -R " . escapeshellarg("{$this->path}{$repo}.fossil") . " 2>&1",







|







275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
                $outputstr = "Invalid URL";
                return false;
            }
        }

        if (file_exists("{$this->path}{$repo}.fossil")) {
            # Ensure that no non-default SSH command can be used for a pull
            exec($this->getFossilCommand(3600) . " unset ssh-command -R " . escapeshellarg("{$this->path}{$repo}.fossil") . " 2>&1",
              $output, $return);
            if ($return !== 0) {
                return false;
            }

            if ($url == '') {
                exec($this->getFossilCommand(3600) . " pull -R " . escapeshellarg("{$this->path}{$repo}.fossil") . " 2>&1",