projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix PHP notices
[squirrelmail.git]
/
src
/
empty_trash.php
diff --git
a/src/empty_trash.php
b/src/empty_trash.php
index a71dd7414a1631c87a143490ead7335d0b7535fc..05c5f3a43a237db4ff47ebce12566088d9a8da8b 100644
(file)
--- a/
src/empty_trash.php
+++ b/
src/empty_trash.php
@@
-6,7
+6,7
@@
* Handles deleting messages from the trash folder without
* deleting subfolders.
*
* Handles deleting messages from the trash folder without
* deleting subfolders.
*
- * @copyright 1999-201
1
The SquirrelMail Project Team
+ * @copyright 1999-201
2
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
@@
-30,6
+30,10
@@
sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
/* finished globals */
/* finished globals */
+// first do a security check
+sqgetGlobalVar('smtoken', $submitted_token, SQ_GET, '');
+sm_validate_security_token($submitted_token, 3600, TRUE);
+
$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
$mailbox = $trash_folder;
$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
$mailbox = $trash_folder;