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:
authorsgiehl <stefan@piwik.org>2016-03-22 23:45:47 +0300
committersgiehl <stefan@piwik.org>2016-03-22 23:45:47 +0300
commitfb6a6bdadc05bbce85a0b197979cf657b83cf183 (patch)
treeea72000bbc4c2e8591a83c1347768c844d517c1d
parenta4c0f65f0ca93ee3c1ac6633a8bead7965998bc3 (diff)
goals fitting exact page title don't need to start with http
-rw-r--r--plugins/Goals/API.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Goals/API.php b/plugins/Goals/API.php
index 113bea5ec9..9b24a59c76 100644
--- a/plugins/Goals/API.php
+++ b/plugins/Goals/API.php
@@ -183,6 +183,7 @@ class API extends \Piwik\Plugin\API
if ($patternType == 'exact'
&& substr($pattern, 0, 4) != 'http'
&& substr($matchAttribute, 0, 6) != 'event_'
+ && $matchAttribute != 'title'
) {
throw new Exception(Piwik::translate('Goals_ExceptionInvalidMatchingString', array("http:// or https://", "http://www.yourwebsite.com/newsletter/subscribed.html")));
}