* Check account first, then add single quotes.

This commit is contained in:
hufangzhou
2024-01-04 16:54:55 +08:00
parent a6607c9c0a
commit e5f64c83fd
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -35,6 +35,7 @@ $filter->default->cookie['maxImport'] = 'reg::any';
$filter->default->cookie['za'] = 'reg::any';
$filter->default->cookie['zp'] = 'reg::any';
$filter->default->cookie['historyOrder'] = 'reg::word';
$filter->default->cookie['vision'] = 'reg::word';
$filter->index = new stdclass();
$filter->my = new stdclass();
+2 -1
View File
@@ -812,9 +812,10 @@ class baseRouter
$vision = '';
$sql = new sql();
$account = $sql->quote($account);
if($this->config->installed and validater::checkAccount($account))
{
$account = $sql->quote($account);
if(!empty($_COOKIE['vision']))
{
$vision = $_COOKIE['vision'];