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:
authorZoltan Flamis <zoltan@innocraft.com>2021-04-21 22:49:07 +0300
committerGitHub <noreply@github.com>2021-04-21 22:49:07 +0300
commit647ed543aecd9b1d92ecfb95acd5f9ac1c7d58f7 (patch)
treeaa3fe46f10b6f049e5c52d069719bd012cf556e3 /plugins/SegmentEditor
parent49f0499b480f96cd5e3a9e2abfd286c3c2d1d690 (diff)
Remove urlencode for segment definitions (#17475)
* remove urlencode for segment definitions * use hash from db in model
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r--plugins/SegmentEditor/API.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/API.php b/plugins/SegmentEditor/API.php
index 49b436c3d2..2a732a995b 100644
--- a/plugins/SegmentEditor/API.php
+++ b/plugins/SegmentEditor/API.php
@@ -404,7 +404,7 @@ class API extends \Piwik\Plugin\API
foreach ($segments as &$segmentInfo) {
$idSites = !empty($segmentInfo['enable_only_idsite']) ? [(int) $segmentInfo['enable_only_idsite']] : $allIdSites;
try {
- $segmentObj = new Segment(urlencode($segmentInfo['definition']), $idSites);
+ $segmentObj = new Segment($segmentInfo['definition'], $idSites);
$segmentInfo['hash'] = $segmentObj->getHash();
} catch (\Exception $ex) {
$segmentInfo['hash'] = 'INVALID SEGMENT';