]> git.wh0rd.org Git - tt-rss.git/commitdiff
only urlencode() login/pass for Magpie for the time being (refs #153)
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 17 Sep 2007 06:10:10 +0000 (07:10 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 17 Sep 2007 06:10:10 +0000 (07:10 +0100)
functions.php

index 29aded6eb2b0d490bbd05eec44a00047f3db6417..38b4d5ffecf561b816c8af4a9c8a882a6026f4b6 100644 (file)
                        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"));