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 /core/Http.php
parente0c91c39516c214d628cf0cdce85354b74f99297 (diff)
Trim URL before attempting to download it
will prevent issues eg http://forum.piwik.org/read.php?2,118158
Diffstat (limited to 'core/Http.php')
-rw-r--r--core/Http.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Http.php b/core/Http.php
index 6645edfb22..537330716a 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -162,6 +162,8 @@ class Http
$proxyUser = Config::getInstance()->proxy['username'];
$proxyPassword = Config::getInstance()->proxy['password'];
+ $aUrl = trim($aUrl);
+
// other result data
$status = null;
$headers = array();