summaryrefslogtreecommitdiff
path: root/gui/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'gui/index.php')
-rw-r--r--gui/index.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/gui/index.php b/gui/index.php
index 891680c..423db56 100644
--- a/gui/index.php
+++ b/gui/index.php
@@ -32,9 +32,9 @@
}
</style>
<?php
+$error = "";
if (isset($_REQUEST["submit"]))
{
- $error = "";
// Not a true while due to the break at the end. A handy way to use goto...
while (true) {
if (!is_uploaded_file($_FILES["filename"]["tmp_name"])) {
@@ -44,13 +44,8 @@ if (isset($_REQUEST["submit"]))
# FIXME: insecure temporary file /tmp/ra.log
system("sudo -H -u rapid-tunneling rapid-tunneling ".
$_FILES["filename"]["tmp_name"]." >/tmp/ra.log 2>&1", $ret);
- if ($ret != 0) {
+ if ($ret != 0)
$error = "Invalid or corrupt file. Please try again.";
- if ( $ret == 7) {
- $error = "Invalid GPG signature. Please try again.";
- }
- break;
- }
break;
}
}