From: tassium Date: Fri, 13 Dec 2002 20:11:06 +0000 (+0000) Subject: sort and startMessage were being set from $_GET without checking to make sure they... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fc2667001b9d15b13830daeed9c60dea6df4b032;p=squirrelmail.git 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 --- 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']);