From 07b0b78e04c2167ec574599d84667230180d0120 Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Thu, 27 Dec 2001 15:04:43 +0000 Subject: [PATCH] Prevent privmsg.php doing a full join between privmsgs and users table if no folder specified git-svn-id: file:///svn/phpbb/trunk@1726 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/privmsg.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php index bbbb20fbd6..2e91606910 100644 --- a/phpBB/privmsg.php +++ b/phpBB/privmsg.php @@ -1743,6 +1743,8 @@ switch($folder) AND pm.privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " AND u.user_id = pm.privmsgs_from_userid ) )"; break; + default: + message_die(GENERAL_ERROR, "Could not query private message information. No folder specified.", "", __LINE__, __FILE__, $sql); } // @@ -2010,4 +2012,4 @@ $template->pparse("body"); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -?> \ No newline at end of file +?>