diff --git a/var/www/common.php b/var/www/common.php index b0cfa91..54b954e 100644 --- a/var/www/common.php +++ b/var/www/common.php @@ -407,6 +407,7 @@ HiddenServiceEnableIntroDoSBurstPerSec 100 } } file_put_contents("/etc/tor/instances/$instance/torrc", $torrc); + chmod("/etc/tor/instances/$instance/torrc", 0644); exec('systemctl reload '.escapeshellarg("tor@$instance")); } diff --git a/var/www/html/files.php b/var/www/html/files.php index 2e1e72f..109f759 100644 --- a/var/www/html/files.php +++ b/var/www/html/files.php @@ -441,7 +441,7 @@ function send_edit($ftp, $dir){ echo ''; $tmpfile='/tmp/'.uniqid(); foreach($_POST['files'] as $file){ - echo '
'.htmlspecialchars($file).'"; ?>
diff --git a/var/www/html/pgp.php b/var/www/html/pgp.php index 167f504..1b2a401 100644 --- a/var/www/html/pgp.php +++ b/var/www/html/pgp.php @@ -55,7 +55,7 @@ if(!empty($user['pgp_key'])){ $_SESSION['enable_2fa_code'] = bin2hex(random_bytes(3)); if($encrypted = gnupg_encrypt($gpg, "To enable 2FA, please enter the following code to confirm ownership of your key:\n\n$_SESSION[enable_2fa_code]\n")){ echo "

To enable 2FA using your PGP key, please decrypt the following PGP encrypted message and confirm the code:

"; - echo "
$encrypted
"; + echo ""; ?>
@@ -72,7 +72,7 @@ if(!empty($user['pgp_key'])){
- +