diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-12-19 17:25:36 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-12-19 17:25:36 +0000 |
commit | 1fe7a3db61ad91a686a118d7568029b0d0ba9ed5 (patch) | |
tree | fa74058b6949f3ecbb0b021a275770caff578a79 /gui | |
parent | b002651ff9c2e3dd6ed8764823ae7d96322513ed (diff) |
rapid-tunneling: gui saves tarball
* rapid-tunneling -c copies tarball.
* Web interface uses this to keep a copy of the log.
* Don't log to /tmp/ra.log .
git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@10210 283159da-0705-0410-b60c-f2062b4bb6ad
Diffstat (limited to 'gui')
-rw-r--r-- | gui/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/index.php b/gui/index.php index 7f3eecf..88c7915 100644 --- a/gui/index.php +++ b/gui/index.php @@ -33,6 +33,7 @@ </style> <?php $error = ""; + if (isset($_REQUEST["submit"])) { // Not a true while due to the break at the end. A handy way to use goto... @@ -41,9 +42,8 @@ if (isset($_REQUEST["submit"])) $error = "Bad file uploaded: " . $_FILES['filename']['name']; break; } - # FIXME: insecure temporary file /tmp/ra.log - system("sudo -H rapid-tunneling ". - $_FILES["filename"]["tmp_name"]." >/tmp/ra.log 2>&1", $ret); + system("sudo -H rapid-tunneling -c ". + $_FILES["filename"]["tmp_name"], $ret); if ($ret != 0) $error = "Invalid or corrupt file. Please try again."; break; |