mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
avoid double-quoting v_domain
This commit is contained in:
parent
1a081dfdbe
commit
5aebfde6cf
1 changed files with 1 additions and 3 deletions
|
@ -10,8 +10,6 @@ if ((!isset($_GET['token'])) || ($_SESSION['token'] != $_GET['token'])) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
$v_domain = $_GET['domain'];
|
|
||||||
$v_domain = escapeshellarg($_GET['domain']);
|
|
||||||
if ($_GET['type'] == 'access') $type = 'access';
|
if ($_GET['type'] == 'access') $type = 'access';
|
||||||
if ($_GET['type'] == 'error') $type = 'error';
|
if ($_GET['type'] == 'error') $type = 'error';
|
||||||
|
|
||||||
|
@ -21,7 +19,7 @@ header("Content-Disposition: attachment; filename=".$_GET['domain'].".".$type."-
|
||||||
header("Content-Type: application/octet-stream; ");
|
header("Content-Type: application/octet-stream; ");
|
||||||
header("Content-Transfer-Encoding: binary");
|
header("Content-Transfer-Encoding: binary");
|
||||||
|
|
||||||
$v_domain = escapeshellarg($_GET['domain']);
|
$v_domain = $_GET['domain'];
|
||||||
if ($_GET['type'] == 'access') $type = 'access';
|
if ($_GET['type'] == 'access') $type = 'access';
|
||||||
if ($_GET['type'] == 'error') $type = 'error';
|
if ($_GET['type'] == 'error') $type = 'error';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue