]> git.wh0rd.org Git - tt-rss.git/commitdiff
prevent session modification in public/rss
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 7 Jun 2012 06:13:05 +0000 (10:13 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 7 Jun 2012 06:13:05 +0000 (10:13 +0400)
classes/public_handler.php

index 51ba48fed75d6312cb4c17da028ee694645c65ef..5b7b523b94a3d50fbdcbdfeae566b98b3dcf70a1 100644 (file)
@@ -30,7 +30,7 @@ class Public_Handler extends Handler {
 
                $feed_self_url = get_self_url_prefix() .
                        "/public.php?op=rss&id=-2&key=" .
-                       get_feed_access_key($this->link, -2, false);
+                       get_feed_access_key($this->link, -2, false, $owner_uid);
 
                if (!$feed_site_url) $feed_site_url = get_self_url_prefix();
 
@@ -294,9 +294,7 @@ class Public_Handler extends Handler {
                }
 
                if ($owner_id) {
-                       $_SESSION['uid'] = $owner_id;
-
-                       $this->generate_syndicated_feed(0, $feed, $is_cat, $limit,
+                       $this->generate_syndicated_feed($owner_id, $feed, $is_cat, $limit,
                                $search, $search_mode, $match_on, $view_mode);
                } else {
                        header('HTTP/1.1 403 Forbidden');