Changeset 30694e4 in github


Ignore:
Timestamp:
Sep 4, 2008 9:50:11 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
911e892
Parents:
1518702
Message:
  • Truncate very long (above 50 characters) attachment filenames when displaying
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rc8ae249 r30694e4  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42008/09/04 (alec) 
     5---------- 
     6- Truncate very long (above 50 characters) attachment filenames when displaying 
     7- Support \" and \\ in quoted strings when parsing BODYSTRUCTURE (mime.inc) 
     8- Allow 'readonly' atributes in input and textarea (#1485312) 
    39 
    4102008/09/03 (thomasb) 
  • program/steps/mail/show.inc

    rb469a19 r30694e4  
    151151      } 
    152152      else { 
     153        if (rc_strlen($attach_prop->filename) > 50) { 
     154          $filename = rc_substr($attach_prop->filename, 0, 25) . '...' . rc_substr($attach_prop->filename, strlen($attach_prop->filename)-20, 20); 
     155          $title = $attach_prop->filename; 
     156        } else { 
     157          $filename = $attach_prop->filename; 
     158          $title = ''; 
     159        } 
     160                   
    153161        $ol .= html::tag('li', null, 
    154162          html::a(array( 
     
    159167              $attach_prop->mime_id, 
    160168              $attach_prop->mimetype), 
     169            'title' => Q($title),   
    161170            ), 
    162             Q($attach_prop->filename))); 
     171            Q($filename))); 
    163172      } 
    164173    } 
Note: See TracChangeset for help on using the changeset viewer.