Changeset 1668 in subversion


Ignore:
Timestamp:
Aug 21, 2008 9:09:08 AM (5 years ago)
Author:
estadtherr
Message:

change to double-escape to get through TinyMCE's cleanup #1484904

File:
1 edited

Legend:

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

    r1667 r1668  
    459459function rcmail_create_reply_body($body, $bodyIsHtml) 
    460460{ 
    461   global $IMAP, $MESSAGE; 
     461  global $IMAP, $MESSAGE, $OUTPUT; 
    462462 
    463463  if (! $bodyIsHtml) 
     
    497497    $prefix = sprintf("<br /><br />On %s, %s wrote:<br />\n", 
    498498      $MESSAGE->headers->date, 
    499       Q($MESSAGE->get_header('from'), 'replace')); 
     499      htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true)); 
    500500    $prefix .= '<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">'; 
    501501    $suffix = "</blockquote>"; 
     
    508508function rcmail_create_forward_body($body, $bodyIsHtml) 
    509509{ 
    510   global $IMAP, $MESSAGE; 
     510  global $IMAP, $MESSAGE, $OUTPUT; 
    511511 
    512512  if (!$bodyIsHtml) 
     
    533533      Q($MESSAGE->subject), 
    534534      Q($MESSAGE->headers->date), 
    535       Q($MESSAGE->get_header('from'), 'replace'), 
    536       Q($MESSAGE->get_header('to'), 'replace')); 
     535      htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true), 
     536      htmlspecialchars(Q($MESSAGE->get_header('to'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true)); 
    537537  } 
    538538 
Note: See TracChangeset for help on using the changeset viewer.