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:
authormattab <matthieu.aubry@gmail.com>2014-08-10 19:46:55 +0400
committermattab <matthieu.aubry@gmail.com>2014-08-10 19:46:55 +0400
commit9e6329baf67cb1e59c55ba05c35761b77d37b1c1 (patch)
tree51a332da3379c54fa07728d22a36f92c79c14b10 /plugins
parente0c91c39516c214d628cf0cdce85354b74f99297 (diff)
Trim URL before attempting to download it
will prevent issues eg http://forum.piwik.org/read.php?2,118158
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/UserCountry/GeoIPAutoUpdater.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/UserCountry/GeoIPAutoUpdater.php b/plugins/UserCountry/GeoIPAutoUpdater.php
index 035f2fcd11..d12be6aace 100755
--- a/plugins/UserCountry/GeoIPAutoUpdater.php
+++ b/plugins/UserCountry/GeoIPAutoUpdater.php
@@ -128,6 +128,8 @@ class GeoIPAutoUpdater extends ScheduledTask
*/
protected function downloadFile($dbType, $url)
{
+ $url = trim($url);
+
$ext = GeoIPAutoUpdater::getGeoIPUrlExtension($url);
// NOTE: using the first item in $dbNames[$dbType] makes sure GeoLiteCity will be renamed to GeoIPCity