cleanup some plugins to make use of sqgetGlobalVar
[squirrelmail.git] / plugins / listcommands / mailout.php
index 9040fef87d7161892f915bf2d26c65185b68ddc2..56b8416c4520782da4e992e3e5fa9488dded67e7 100644 (file)
@@ -19,11 +19,11 @@ include_once(SM_PATH . 'functions/html.php');
 displayPageHeader($color, $mailbox);
 
 /* get globals */
-$mailbox = $_GET['mailbox'];
-$send_to = $_GET['send_to'];
-$subject = $_GET['subject'];
-$body    = $_GET['body'];
-$action  = $_GET['action'];
+sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
+sqgetGlobalVar('send_to', $send_to, SQ_GET);
+sqgetGlobalVar('subject', $subject, SQ_GET);
+sqgetGlobalVar('body',    $body,    SQ_GET);
+sqgetGlobalVar('action',  $action,  SQ_GET);
 
 echo html_tag('p', '', 'left' ) .
 html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" .