Make use of the `objectIDs` parameter
authorMarcel Werk <burntime@woltlab.com>
Sun, 4 Feb 2024 13:25:42 +0000 (14:25 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 4 Feb 2024 13:25:42 +0000 (14:25 +0100)
wcfsetup/install/files/lib/page/ArticleRssFeedPage.class.php

index 084d9fcd432d9dba13708eedb001bf6ce320b067..bf4d575869aaf0dac9299a3361d3d621577ec822 100644 (file)
@@ -31,8 +31,8 @@ class ArticleRssFeedPage extends AbstractRssFeedPage
     {
         parent::readParameters();
 
-        if (isset($_REQUEST['id'])) {
-            $this->categoryID = \intval($_REQUEST['id']);
+        if ($this->objectIDs !== []) {
+            $this->categoryID = \reset($this->objectIDs);
             $this->category = ArticleCategory::getCategory($this->categoryID);
             if ($this->category === null) {
                 throw new IllegalLinkException();