mirror of
https://github.com/ZeroDream-CN/SakuraPanel.git
synced 2025-01-12 09:52:52 +08:00
Fix: Query string escape bug
This commit is contained in:
parent
7170f89920
commit
a7a937e180
@ -110,12 +110,12 @@ if((isset($_GET['apitoken']) && $_GET['apitoken'] == API_TOKEN) || (isset($_GET[
|
|||||||
// 目前只验证域名和子域名
|
// 目前只验证域名和子域名
|
||||||
$domain = $_GET['domain'] ?? "null";
|
$domain = $_GET['domain'] ?? "null";
|
||||||
$subdomain = $_GET['subdomain'] ?? "null";
|
$subdomain = $_GET['subdomain'] ?? "null";
|
||||||
$username = Database::escape($rs['username']);
|
$username = $rs['username'];
|
||||||
$domain = Database::escape($domain);
|
$domain = $domain;
|
||||||
$subdomain = Database::escape($subdomain);
|
$subdomain = $subdomain;
|
||||||
$domainSQL = (isset($_GET['domain']) && !empty($_GET['domain'])) ? ["domain" => $domain] : ["subdomain" => $subdomain];
|
$domainSQL = (isset($_GET['domain']) && !empty($_GET['domain'])) ? ["domain" => $domain] : ["subdomain" => $subdomain];
|
||||||
$querySQL = [
|
$querySQL = [
|
||||||
"username" => $username,
|
"username" => $username,
|
||||||
"proxy_type" => $proxyType
|
"proxy_type" => $proxyType
|
||||||
];
|
];
|
||||||
$querySQL = Array_merge($querySQL, $domainSQL);
|
$querySQL = Array_merge($querySQL, $domainSQL);
|
||||||
|
Loading…
Reference in New Issue
Block a user