From 464bd61e20471809bcf420281ff08001ec354ef4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 17 Sep 2007 07:10:10 +0100 Subject: [PATCH] only urlencode() login/pass for Magpie for the time being (refs #153) --- functions.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 29aded6eb..38b4d5ffe 100644 --- a/functions.php +++ b/functions.php @@ -442,8 +442,13 @@ return; } - $auth_login = urlencode(db_fetch_result($result, 0, "auth_login")); - $auth_pass = urlencode(db_fetch_result($result, 0, "auth_pass")); + $auth_login = db_fetch_result($result, 0, "auth_login"); + $auth_pass = db_fetch_result($result, 0, "auth_pass"); + + if (!ENABLE_SIMPLEPIE) { + $auth_login = urlencode($auth_login); + $auth_pass = urlencode($auth_pass); + } $update_interval = db_fetch_result($result, 0, "update_interval"); $cache_images = sql_bool_to_bool(db_fetch_result($result, 0, "cache_images"));