From fc2667001b9d15b13830daeed9c60dea6df4b032 Mon Sep 17 00:00:00 2001 From: tassium Date: Fri, 13 Dec 2002 20:11:06 +0000 Subject: [PATCH] sort and startMessage were being set from $_GET without checking to make sure they were present. When deleting a message from a search, sort and startMessage weren't a part of $_GET. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4268 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/delete_message.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/delete_message.php b/src/delete_message.php index fc281fdd..7fc5473d 100644 --- a/src/delete_message.php +++ b/src/delete_message.php @@ -32,8 +32,13 @@ if (isset($_GET['saved_draft'])) { if (isset($_GET['mail_sent'])) { $mail_sent = urlencode($_GET['mail_sent']); } -$sort = (int) $_GET['sort']; -$startMessage = (int) $_GET['startMessage']; +if (isset($_GET['sort'])) { + $sort = (int) $_GET['sort']; +} + +if (isset($_GET['startMessage'])) { + $startMessage = (int) $_GET['startMessage']; +} if(isset($_GET['where'])) { $where = urlencode($_GET['where']); -- 2.25.1