diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-05-23 04:12:35 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-05-23 04:12:35 +0400 |
commit | 247691109695bb5af76a06330259193a2bf8f32e (patch) | |
tree | f211bb629390d7bea9821042eb219e3f2619437c /plugins | |
parent | c2f90ff1d136f2b3bb7375b0db93a54419daa672 (diff) |
Refs #3934 Thanks Peter for testing and finding this. the array_map('urlencode', fixes it
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/API/API.php | 1 | ||||
-rw-r--r-- | plugins/SegmentEditor/API.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index 9367442952..557cbaf3eb 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -733,6 +733,7 @@ class Piwik_API_API 'idSubtable' => $idSubtable, )); if (!empty($segment)) $parameters['segment'] = $segment; + $parameters = array_map('urlencode', $parameters); $url = Piwik_Url::getQueryStringFromParameters($parameters); $request = new Piwik_API_Request($url); diff --git a/plugins/SegmentEditor/API.php b/plugins/SegmentEditor/API.php index 15915e1e72..f94683db24 100644 --- a/plugins/SegmentEditor/API.php +++ b/plugins/SegmentEditor/API.php @@ -213,7 +213,7 @@ class Piwik_SegmentEditor_API } if ($segment['deleted']) { - throw new Exception("This segment is marked as deleted."); + throw new Exception("This segment is marked as deleted. "); } return $segment; } |