Changeset 86df152 in github for program/steps/mail/compose.inc


Ignore:
Timestamp:
Dec 29, 2006 4:06:39 PM (6 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
e93a2d7
Parents:
3b12aee
Message:

Error handling for attachment uploads; multibyte-safe string functions; XSS improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/compose.inc

    r2bca6e1 r86df152  
    4747$MESSAGE = NULL; 
    4848 
    49 // nothing below is called during message composition, only at "new/forward/reply/draft" initialization 
    50 // since there are many ways to leave the compose page improperly, it seems necessary to clean-up an old 
     49// Nothing below is called during message composition, only at "new/forward/reply/draft" initialization or 
     50// if a compose-ID is given (i.e. when the compose step is opened in a new window/tab). 
     51// Since there are many ways to leave the compose page improperly, it seems necessary to clean-up an old 
    5152// compose when a "new/forward/reply/draft" is called - otherwise the old session attachments will appear 
    5253 
    53 rcmail_compose_cleanup(); 
    54 $_SESSION['compose'] = array('id' => uniqid(rand())); 
     54if (!is_array($_SESSION['compose']) || $_SESSION['compose']['id'] != get_input_value('_id', RCUBE_INPUT_GET)) 
     55  { 
     56  rcmail_compose_cleanup(); 
     57  $_SESSION['compose'] = array('id' => uniqid(rand())); 
     58  } 
    5559 
    5660// add some labels to client 
Note: See TracChangeset for help on using the changeset viewer.