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:
authordiosmosis <diosmosis@users.noreply.github.com>2020-01-09 04:57:16 +0300
committerGitHub <noreply@github.com>2020-01-09 04:57:16 +0300
commitbd3210b25fcd6a69c169984fe28815e342093ddb (patch)
treec15f7afbeff3da1b53c519a129219838c0fca4c7 /plugins/UserCountry
parentdb187694bc8a3b1b0ef288399aca467800e55f24 (diff)
Fix fatal error in case users still using first geoip plugin. (#15362)
* Fix fatal error in case users still using first geoip plugin. * escape urls.
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r--plugins/UserCountry/templates/_updaterManage.twig2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserCountry/templates/_updaterManage.twig b/plugins/UserCountry/templates/_updaterManage.twig
index be20ec9b41..e624a97d9a 100644
--- a/plugins/UserCountry/templates/_updaterManage.twig
+++ b/plugins/UserCountry/templates/_updaterManage.twig
@@ -2,7 +2,7 @@
<p>
{{ 'UserCountry_GeoIPUpdaterInstructions'|translate('<a href="http://www.maxmind.com/?rId=piwik">','</a>','<a rel="noreferrer noopener" href="https://db-ip.com/?refid=mtm">','</a>')|raw }}
<br/><br/>
- {{ 'UserCountry_GeoLiteCityLink'|translate("<a href='"~dbipLiteUrl~"'>",dbipLiteUrl,'</a>')|raw }}
+ {% if dbipLiteUrl|default is not empty %}{{ 'UserCountry_GeoLiteCityLink'|translate('<a rel="noreferrer noopener" href="'~dbipLiteUrl|e('html_attr')~'">',dbipLiteUrl|e('html'),'</a>')|raw }}{% endif %}
<span ng-show="locationUpdater.geoipDatabaseInstalled">
<br/><br/>{{ 'UserCountry_GeoIPUpdaterIntro'|translate }}: