Ticket #1485187: rc-memory.diff

File rc-memory.diff, 1.1 kB (added by jeblair, 6 months ago)

Patch to index.php and imap.inc

  • index.php

     
    3333// define global vars 
    3434$OUTPUT_TYPE = 'html'; 
    3535 
     36// init application and start session with requested task 
     37$RCMAIL = rcmail::get_instance(); 
     38 
    3639// set output buffering 
    3740if ($RCMAIL->action != 'get' && $RCMAIL->action != 'viewsource') { 
    3841  // use gzip compression if supported 
     
    4750} 
    4851 
    4952 
    50 // init application and start session with requested task 
    51 $RCMAIL = rcmail::get_instance(); 
    52  
    5353// init output class 
    5454$OUTPUT = (!empty($_GET['_remote']) || !empty($_POST['_remote'])) ? $RCMAIL->init_json() : $RCMAIL->load_gui((!empty($_GET['_framed']) || !empty($_POST['_framed']))); 
    5555 
  • program/lib/imap.inc

    === modified file 'program/lib/imap.inc'
     
    23962396                                } else if ($mode == 2) { 
    23972397                                        echo rtrim($line, "\t\r\n\0\x0B") . "\n"; flush(); 
    23982398                                } else if ($mode == 3) { 
    2399                                         echo base64_decode($line); flush(); 
     2399                                        echo base64_decode($line);  
    24002400                                } 
    24012401                        } 
    24022402                }