aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/privmsg.php
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2001-12-27 15:04:43 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2001-12-27 15:04:43 +0000
commit07b0b78e04c2167ec574599d84667230180d0120 (patch)
tree934be15ee150e2ccbfa67825137d4f012ae841c9 /phpBB/privmsg.php
parent46ea2a6ddb085a6e9dd96fb2755ce78b544f10b2 (diff)
downloadforums-07b0b78e04c2167ec574599d84667230180d0120.tar
forums-07b0b78e04c2167ec574599d84667230180d0120.tar.gz
forums-07b0b78e04c2167ec574599d84667230180d0120.tar.bz2
forums-07b0b78e04c2167ec574599d84667230180d0120.tar.xz
forums-07b0b78e04c2167ec574599d84667230180d0120.zip
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
Diffstat (limited to 'phpBB/privmsg.php')
-rw-r--r--phpBB/privmsg.php4
1 files changed, 3 insertions, 1 deletions
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
+?>