Changeset 184 in subversion


Ignore:
Timestamp:
Apr 4, 2006 5:42:54 PM (7 years ago)
Author:
roundcube
Message:

Strip tags on _auth, _action, _task parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/index.php

    r171 r184  
    33 +-----------------------------------------------------------------------+ 
    44 | RoundCube Webmail IMAP Client                                         | 
    5  | Version 0.1-20060320                                                  | 
     5 | Version 0.1-20060402                                                  | 
    66 |                                                                       | 
    77 | Copyright (C) 2005, RoundCube Dev. - Switzerland                      | 
     
    4141*/ 
    4242 
    43 define('RCMAIL_VERSION', '0.1-20060320'); 
     43define('RCMAIL_VERSION', '0.1-20060402'); 
    4444 
    4545 
     
    8585 
    8686// catch some url/post parameters 
    87 $_auth = !empty($_POST['_auth']) ? $_POST['_auth'] : $_GET['_auth']; 
    88 $_task = !empty($_POST['_task']) ? $_POST['_task'] : (!empty($_GET['_task']) ? $_GET['_task'] : 'mail'); 
    89 $_action = !empty($_POST['_action']) ? $_POST['_action'] : (!empty($_GET['_action']) ? $_GET['_action'] : ''); 
     87$_auth = get_input_value('_auth', RCUBE_INPUT_GPC); 
     88$_task = get_input_value('_task', RCUBE_INPUT_GPC); 
     89$_action = get_input_value('_action', RCUBE_INPUT_GPC); 
    9090$_framed = (!empty($_GET['_framed']) || !empty($_POST['_framed'])); 
     91 
     92if (empty($_task)) 
     93  $_task = 'mail'; 
    9194 
    9295if (!empty($_GET['_remote'])) 
Note: See TracChangeset for help on using the changeset viewer.