From f656a212cab6bb126dc37f8fd2d5924310e75d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 8 Sep 2013 20:53:59 +0200 Subject: [PATCH] Disallow temporary rooms in MessageLogDownloadPage --- file/lib/acp/page/MessageLogDownloadPage.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/file/lib/acp/page/MessageLogDownloadPage.class.php b/file/lib/acp/page/MessageLogDownloadPage.class.php index 47f8152..5dd75f2 100644 --- a/file/lib/acp/page/MessageLogDownloadPage.class.php +++ b/file/lib/acp/page/MessageLogDownloadPage.class.php @@ -111,7 +111,8 @@ public function readParameters() { } $this->room = \chat\data\room\RoomCache::getInstance()->getRoom($this->roomID); - if ($this->room === null) throw new \wcf\system\exception\IllegalLinkException(); + if (!$this->room) throw new \wcf\system\exception\IllegalLinkException(); + if (!$this->room->permanent) throw new \wcf\system\exception\PermissionDeniedException(); if (isset($_REQUEST['date'])) $date = $_REQUEST['date'].' 00:00:00'; else $date = 'today 00:00:00';