Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2021-06-18 10:14:35 +0300
committerGitHub <noreply@github.com>2021-06-18 10:14:35 +0300
commit482cf02b00876f799516036cef52c061136a0954 (patch)
treeb55cc1644958685c4e9dfe3994bc17d05957d7f4 /core/DataAccess/Model.php
parent3af87103094fc48699fa656ac6795ec56f5775d2 (diff)
fix regression in trackingspamprevention and warning in bound parameter checking code (#17683)
* remove testdox * fix warning if parameters is a single value, not an array * allow skipping valid host check for hardcoded URLs we know are valid * print testdox hint in case build takes too long to finish consistently * move testdox warning to correct boostrap file * fixing some tests + fix use of Date in bind params
Diffstat (limited to 'core/DataAccess/Model.php')
-rw-r--r--core/DataAccess/Model.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/DataAccess/Model.php b/core/DataAccess/Model.php
index 40528f60bd..a15cbf337a 100644
--- a/core/DataAccess/Model.php
+++ b/core/DataAccess/Model.php
@@ -327,8 +327,8 @@ class Model
/** @var Period $period */
$dateConditions[] = "(date1 <= ? AND ? <= date2)";
- $bind[] = $period->getDateStart();
- $bind[] = $period->getDateEnd();
+ $bind[] = $period->getDateStart()->getDatetime();
+ $bind[] = $period->getDateEnd()->getDatetime();
$dateConditionsSql = implode(" OR ", $dateConditions);
$periodConditions[] = "(period = 5 AND ($dateConditionsSql))";