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:
Diffstat (limited to 'plugins/API/Controller.php')
-rw-r--r--plugins/API/Controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/API/Controller.php b/plugins/API/Controller.php
index 41234d5c9a..416cc728de 100644
--- a/plugins/API/Controller.php
+++ b/plugins/API/Controller.php
@@ -53,7 +53,7 @@ class Controller extends \Piwik\Plugin\Controller
$ApiDocumentation = new DocumentationGenerator();
$prefixUrls = Common::getRequestVar('prefixUrl', 'http://demo.piwik.org/', 'string');
- if (!UrlHelper::isLookLikeUrl($prefixUrls)) {
+ if (!UrlHelper::isLookLikeUrl($prefixUrls) || strpos($prefixUrls, 'http') !== 0) {
$prefixUrls = '';
}
return $ApiDocumentation->getApiDocumentationAsStringForDeveloperReference($outputExampleUrls = true, $prefixUrls);