From dcffb2723ac2c80475c196e2f1b5e07affcdf78a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 17 Sep 2007 04:18:28 +0100 Subject: urlencode login/pass before passing them to Magpie (closes #153) --- magpierss/extlib/Snoopy.class.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'magpierss/extlib') diff --git a/magpierss/extlib/Snoopy.class.inc b/magpierss/extlib/Snoopy.class.inc index 83a1e7395..17e6a952d 100644 --- a/magpierss/extlib/Snoopy.class.inc +++ b/magpierss/extlib/Snoopy.class.inc @@ -157,9 +157,9 @@ class Snoopy //preg_match("|^([^:]+)://([^:/]+)(:[\d]+)*(.*)|",$URI,$URI_PARTS); $URI_PARTS = parse_url($URI); if (!empty($URI_PARTS["user"])) - $this->user = $URI_PARTS["user"]; + $this->user = urldecode($URI_PARTS["user"]); if (!empty($URI_PARTS["pass"])) - $this->pass = $URI_PARTS["pass"]; + $this->pass = urldecode($URI_PARTS["pass"]); $this->_scheme = $URI_PARTS["scheme"]; -- cgit v1.2.3