Skip to content

Commit

Permalink
Merge branch 'release/32.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Aug 10, 2023
2 parents 926fdfe + d62930b commit 411a53b
Show file tree
Hide file tree
Showing 4 changed files with 242 additions and 240 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/PagevisitRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function getAmountOfSocialMediaReferrers(FilterDto $filter): array
$connection = DatabaseUtility::getConnectionForTable(Pagevisit::TABLE_NAME);
$result = [];
foreach ($socialMedia->getDomainsForQuery() as $name => $domains) {
$sql = 'select count(*) count from ' . Pagevisit::TABLE_NAME . ' where referrer like "' . $domains . '"';
$sql = 'select count(*) count from ' . Pagevisit::TABLE_NAME . ' where referrer rlike "' . $domains . '"';
$sql .= $this->extendWhereClauseWithFilterTime($filter);
$count = (int)$connection->executeQuery($sql)->fetchOne();
if ($count > 0) {
Expand Down
1 change: 1 addition & 0 deletions Classes/Domain/Service/Referrer/SocialMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class SocialMedia
[
'name' => 'Instagram',
'domains' => [
'instagram.com',
'www.instagram.com',
'm.instagram.com',
'l.instagram.com',
Expand Down
Loading

0 comments on commit 411a53b

Please sign in to comment.