diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-08-10 19:46:55 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-08-10 19:46:55 +0400 |
commit | 9e6329baf67cb1e59c55ba05c35761b77d37b1c1 (patch) | |
tree | 51a332da3379c54fa07728d22a36f92c79c14b10 /core/Http.php | |
parent | e0c91c39516c214d628cf0cdce85354b74f99297 (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.php | 2 |
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(); |