summaryrefslogtreecommitdiff
path: root/gui/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'gui/index.php')
-rw-r--r--gui/index.php6
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;