alecpl
2009-05-29 2ff8af15a46503d8eef80b9c62134e25229d0671
- Fixed problem with double quote at the end of folder name (#1485884)


3 files modified
10 ■■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/lib/imap.inc 7 ●●●●● patch | view | raw | blame | history
skins/default/templates/messagepreview.html 2 ●●● patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
- Fixed problem with double quote at the end of folder name (#1485884)
- Speedup UI by using CSS sprites and etags/expires/deflate in Apache config (#1484858,#1485800)
- Support UID EXPUNGE: remove only moved/deleted messages
- Add drag cancelling with ESC key (#1484344)
program/lib/imap.inc
@@ -83,6 +83,7 @@
        - removed caching functions
        - handling connection startup response
        - added UID EXPUNGE support
        - fixed problem with double quote at the end of folder name in LIST and LSUB
********************************************************/
@@ -2156,7 +2157,7 @@
                // split one line
            $a = iil_ExplodeQuotedString(' ', $line);
                // last string is folder name
            $folder = trim($a[count($a)-1], '"');
            $folder = preg_replace(array('/^"/', '/"$/'), '', $a[count($a)-1]);
            
                if (empty($ignore) || (!empty($ignore)
                        && !preg_match('/'.preg_quote(ignore, '/').'/i', $folder))) {
@@ -2223,8 +2224,8 @@
            $a = iil_ExplodeQuotedString(' ', $line);
            
                // last string is folder name
                $folder = trim($a[count($a)-1], '"');
                $folder = preg_replace(array('/^"/', '/"$/'), '', $a[count($a)-1]);
            if ((!in_array($folder, $folders)) && (empty($ignore)
                        || (!empty($ignore) && !preg_match('/'.preg_quote(ignore, '/').'/i', $folder)))) {
                $folders[$i] = $folder;
skins/default/templates/messagepreview.html
@@ -7,7 +7,7 @@
<body class="iframe">
<div class="messageheaderbox">
<roundcube:button command="permaurl" image="/images/icons/extwin.png" width="15" height="15" title="openinextwin" id="messageviewlink" target="_blank" />
<roundcube:button command="open" image="/images/icons/extwin.png" width="15" height="15" title="openinextwin" id="messageviewlink" target="_blank" />
<roundcube:object name="messageHeaders" class="headers-table" cellspacing="0" cellpadding="2" addicon="/images/icons/plus.gif" summary="Message headers" />
<roundcube:object name="messageAttachments" id="attachment-list" />
</div>