diff options
author | Zoltan Flamis <zoltan@innocraft.com> | 2021-04-21 22:49:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 22:49:07 +0300 |
commit | 647ed543aecd9b1d92ecfb95acd5f9ac1c7d58f7 (patch) | |
tree | aa3fe46f10b6f049e5c52d069719bd012cf556e3 /plugins/SegmentEditor | |
parent | 49f0499b480f96cd5e3a9e2abfd286c3c2d1d690 (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.php | 2 |
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'; |