Projects
Kolab:Winterfell
roundcubemail
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 7
View file
roundcubemail.spec
Changed
@@ -43,7 +43,7 @@ Name: roundcubemail Version: 1.2 -Release: 0.20160223.git%{?dist} +Release: 0.20160224.git%{?dist} Summary: Round Cube Webmail is a browser-based multilingual IMAP client
View file
debian.changelog
Changed
@@ -1,4 +1,4 @@ -roundcubemail (1:1.2~dev20160223-0~kolab1) unstable; urgency=low +roundcubemail (1:1.2~dev20160224-0~kolab1) unstable; urgency=low * fix secure URL regex for debian
View file
roundcubemail-1.2.tar.gz/CHANGELOG
Changed
@@ -24,6 +24,7 @@ - Plugin API: Added addressbook_export hook - Fix additional_message_headers plugin compatibility with Mail_Mime >= 1.9 (#1490657) - Hide DSN option in Preferences when smtp_server is not used (#1490666) +- Fix handling of body parameter in mail compose request RELEASE 1.2-beta ----------------
View file
roundcubemail-1.2.tar.gz/program/js/app.js
Changed
@@ -3967,7 +3967,7 @@ } if (!html_mode) { - pos = this.env.top_posting ? 0 : input_message.value.length; + pos = this.env.top_posting && this.env.compose_mode ? 0 : input_message.value.length; // add signature according to selected identity // if we have HTML editor, signature is added in a callback
View file
roundcubemail-1.2.tar.gz/program/js/editor.js
Changed
@@ -513,10 +513,10 @@ message = message.substring(0, p) + sig + message.substring(p, message.length); cursor_pos = p - 1; } - // empty message - else if (!message) { - message = '\n\n' + sig; - cursor_pos = 0; + // empty message or new-message mode + else if (!message || !rcmail.env.compose_mode) { + cursor_pos = message.length; + message += '\n\n' + sig; } else if (rcmail.env.top_posting && !rcmail.env.sig_below) { // at cursor position @@ -555,8 +555,10 @@ sigElem = $('<div id="_rc_sig"></div>').get(0); // insert at start or at cursor position in top-posting mode - // (but not if the content is empty) - if (rcmail.env.top_posting && !rcmail.env.sig_below && (body.childNodes.length > 1 || $(body).text())) { + // (but not if the content is empty and not in new-message mode) + if (rcmail.env.top_posting && !rcmail.env.sig_below + && rcmail.env.compose_mode && (body.childNodes.length > 1 || $(body).text()) + ) { this.editor.getWin().focus(); // correct focus in IE & Chrome var node = this.editor.selection.getNode(); @@ -566,7 +568,7 @@ } else { body.appendChild(sigElem); - position_element = rcmail.env.top_posting ? body.firstChild : $(sigElem).prev(); + position_element = rcmail.env.top_posting && rcmail.env.compose_mode ? body.firstChild : $(sigElem).prev(); } }
View file
roundcubemail-1.2.tar.gz/program/steps/mail/compose.inc
Changed
@@ -359,7 +359,12 @@ // clean HTML message body which can be submitted by URL if (!empty($COMPOSE['param']['body'])) { - $COMPOSE['param']['body'] = rcmail_wash_html($COMPOSE['param']['body'], array('safe' => false, 'inline_html' => true), array()); + if ($COMPOSE['param']['html'] = strpos($COMPOSE['param']['body'], '<') !== false) { + $wash_params = array('safe' => false, 'inline_html' => true); + $COMPOSE['param']['body'] = rcmail_wash_html($COMPOSE['param']['body'], $wash_params, array()); + $COMPOSE['param']['body'] = preg_replace('/<!--[^>\n]+>/', '', $COMPOSE['param']['body']); + $COMPOSE['param']['body'] = preg_replace('/<\/?body>/', '', $COMPOSE['param']['body']); + } } $RCMAIL = rcmail::get_instance(); @@ -718,7 +723,10 @@ $html_editor = intval($RCMAIL->config->get('htmleditor')); $compose_mode = $COMPOSE['mode']; - if (isset($_POST['_is_html'])) { + if (is_bool($COMPOSE['param']['html'])) { + $useHtml = $COMPOSE['param']['html']; + } + else if (isset($_POST['_is_html'])) { $useHtml = !empty($_POST['_is_html']); } else if ($compose_mode == RCUBE_COMPOSE_DRAFT || $compose_mode == RCUBE_COMPOSE_EDIT) {
View file
roundcubemail.dsc
Changed
@@ -2,7 +2,7 @@ Source: roundcubemail Binary: roundcubemail Architecture: all -Version: 1:1.2~dev20160223-0~kolab1 +Version: 1:1.2~dev20160224-0~kolab1 Maintainer: Debian Roundcube Maintainers <pkg-roundcube-maintainers@lists.alioth.debian.org> Uploaders: Vincent Bernat <bernat@debian.org>, Romain Beauxis <toots@rastageeks.org>, Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl> Homepage: http://www.roundcube.net/
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.