From: Andrew Dolgov Date: Mon, 17 Sep 2007 06:10:10 +0000 (+0100) Subject: only urlencode() login/pass for Magpie for the time being (refs #153) X-Git-Tag: 1.2.15~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=464bd61e20471809bcf420281ff08001ec354ef4;p=tt-rss.git only urlencode() login/pass for Magpie for the time being (refs #153) --- diff --git a/functions.php b/functions.php index 29aded6e..38b4d5ff 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"));