Overview
Request 2074 (accepted)
Various code bug fixes
- Created by vanmeeuwen almost 8 years ago
- In state accepted
roundcubemail.spec
Changed
x
1
2
Name: roundcubemail
3
Version: 1.2.5
4
5
-Release: 4%{?dist}
6
+Release: 6%{?dist}
7
8
Summary: Round Cube Webmail is a browser-based multilingual IMAP client
9
10
11
12
Patch201: default-configuration.patch
13
14
+Patch0001: 0001-Fix-bug-where-comment-notation-within-style-tag-woul.patch
15
+Patch0002: 0002-Fix-bug-where-it-wasn-t-possible-to-scroll-folders-l.patch
16
+Patch0003: 0003-Fix-addressbook-searching-by-gender-5757.patch
17
+Patch0004: 0004-Enigma-Fix-compatibility-with-assets_dir.patch
18
+Patch0005: 0005-Fix-SQL-syntax-error-on-MariaDB-10.2-5774.patch
19
+Patch0006: 0006-Fix-bug-where-it-wasn-t-possible-to-set-timezone-to-.patch
20
+
21
BuildArch: noarch
22
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
23
24
BuildRequires: composer
25
+%if 0%{?fedora}
26
+# fix issue:
27
+# have choice for php-composer(justinrainbow/json-schema) >= 2.0 needed by composer: php-justinrainbow-json-schema4 php-justinrainbow-json-schema
28
+# have choice for php-composer(justinrainbow/json-schema) < 5 needed by composer: php-justinrainbow-json-schema4 php-justinrainbow-json-schema php-JsonSchema
29
+BuildRequires: php-justinrainbow-json-schema4
30
+%endif
31
32
%if 0%{?plesk} < 1
33
BuildRequires: php-gd
34
35
Requires: php-common >= 5.3
36
%endif
37
38
+%if 0%{?fedora}
39
+# to avoid on OBS, for packages depending on roundcubemail-core:
40
+# have choice for webserver needed by roundcubemail-core: lighttpd httpd nginx cherokee
41
+Requires: httpd
42
+%endif
43
+
44
Requires: php-gd
45
Requires: php-mbstring
46
Requires: php-mcrypt
47
48
%defattr(-,root,root,-)
49
50
%changelog
51
+* Fri Jun 16 2017 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.2.5-6
52
+- Fix saving preferences (timezone)
53
+- Fix syntax error against MariaDB 10.2
54
+- Fix assets for enigma plugin
55
+
56
+* Thu May 25 2017 Timotheus Pokorra <tp@tbits.net> - 1.2.5-5
57
+- avoid problems on Fedora, roundcubemail-core requires webserver but there are several available
58
+
59
* Wed May 10 2017 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.2.5-2
60
- Fix log rotation in Plesk
61
62
0001-Fix-bug-where-comment-notation-within-style-tag-woul.patch
Added
66
1
2
+From 9bfacb4d3c6e687a3921fe52dfc98d67db0f99fa Mon Sep 17 00:00:00 2001
3
+From: Aleksander Machniak <alec@alec.pl>
4
+Date: Fri, 5 May 2017 11:51:23 +0200
5
+Subject: [PATCH 1/6] Fix bug where comment notation within style tag would
6
+ cause the whole style to be ignored (#5747)
7
+
8
+---
9
+ CHANGELOG | 2 ++
10
+ program/lib/Roundcube/rcube_utils.php | 1 +
11
+ tests/Framework/Utils.php | 13 +++++++++++++
12
+ 3 files changed, 16 insertions(+)
13
+
14
+diff --git a/CHANGELOG b/CHANGELOG
15
+index facd8b329..5bd46f0d3 100644
16
+--- a/CHANGELOG
17
++++ b/CHANGELOG
18
+@@ -1,6 +1,8 @@
19
+ CHANGELOG Roundcube Webmail
20
+ ===========================
21
+
22
++- Fix bug where comment notation within style tag would cause the whole style to be ignored (#5747)
23
++
24
+ RELEASE 1.2.5
25
+ -------------
26
+ - Fix re-positioning of the fixed header of messages list in Chrome when using minimal mode toggle and About dialog (#5711)
27
+diff --git a/program/lib/Roundcube/rcube_utils.php b/program/lib/Roundcube/rcube_utils.php
28
+index 34d5d7193..c198c30e7 100644
29
+--- a/program/lib/Roundcube/rcube_utils.php
30
++++ b/program/lib/Roundcube/rcube_utils.php
31
+@@ -499,6 +499,7 @@ class rcube_utils
32
+ public static function xss_entity_decode($content)
33
+ {
34
+ $out = html_entity_decode(html_entity_decode($content));
35
++ $out = trim(preg_replace('/(^<!--|-->$)/', '', trim($out)));
36
+ $out = preg_replace_callback('/\\\([0-9a-f]{4})/i',
37
+ array(self, 'xss_entity_decode_callback'), $out);
38
+ $out = preg_replace('#/\*.*\*/#Ums', '', $out);
39
+diff --git a/tests/Framework/Utils.php b/tests/Framework/Utils.php
40
+index ba04e1545..71e9f3e30 100644
41
+--- a/tests/Framework/Utils.php
42
++++ b/tests/Framework/Utils.php
43
+@@ -220,6 +220,19 @@ class Framework_Utils extends PHPUnit_Framework_TestCase
44
+ $this->assertEquals("#rcmbody { background-image: url(data:image/png;base64,123); }", $mod, "Data URIs in url() allowed");
45
+ }
46
+
47
++ function test_xss_entity_decode()
48
++ {
49
++ $mod = rcube_utils::xss_entity_decode("<img/src=x onerror=alert(1)// </b>");
50
++ $this->assertNotContains('<img', $mod, "Strip (encoded) tags from style node");
51
++
52
++ $mod = rcube_utils::xss_entity_decode('#foo:after{content:"\003Cimg/src=x onerror=alert(2)>";}');
53
++ $this->assertNotContains('<img', $mod, "Strip (encoded) tags from content property");
54
++
55
++ // #5747
56
++ $mod = rcube_utils::xss_entity_decode('<!-- #foo { content:css; } -->');
57
++ $this->assertContains('#foo', $mod, "Strip HTML comments from content, but not the content");
58
++ }
59
++
60
+ /**
61
+ * Check rcube_utils::explode_quoted_string()
62
+ */
63
+--
64
+2.13.0
65
+
66
0002-Fix-bug-where-it-wasn-t-possible-to-scroll-folders-l.patch
Added
57
1
2
+From 1b8d76644769cbe2bcbddb657aafed550999aebf Mon Sep 17 00:00:00 2001
3
+From: Aleksander Machniak <alec@alec.pl>
4
+Date: Fri, 5 May 2017 13:41:49 +0200
5
+Subject: [PATCH 2/6] Fix bug where it wasn't possible to scroll folders list
6
+ in Edge (#5750)
7
+
8
+---
9
+ CHANGELOG | 1 +
10
+ skins/larry/mail.css | 4 +---
11
+ 2 files changed, 2 insertions(+), 3 deletions(-)
12
+
13
+diff --git a/CHANGELOG b/CHANGELOG
14
+index 5bd46f0d3..e83c007ce 100644
15
+--- a/CHANGELOG
16
++++ b/CHANGELOG
17
+@@ -2,6 +2,7 @@ CHANGELOG Roundcube Webmail
18
+ ===========================
19
+
20
+ - Fix bug where comment notation within style tag would cause the whole style to be ignored (#5747)
21
++- Fix bug where it wasn't possible to scroll folders list in Edge (#5750)
22
+
23
+ RELEASE 1.2.5
24
+ -------------
25
+diff --git a/skins/larry/mail.css b/skins/larry/mail.css
26
+index e29265643..155e16b01 100644
27
+--- a/skins/larry/mail.css
28
++++ b/skins/larry/mail.css
29
+@@ -16,7 +16,7 @@
30
+ left: 0;
31
+ width: 200px;
32
+ bottom: 0;
33
+- z-index: 2;
34
++ z-index: 1; /* fixes scrolling in Edge (#5750) */
35
+ }
36
+
37
+ #mailview-right {
38
+@@ -25,7 +25,6 @@
39
+ left: 212px;
40
+ right: 0;
41
+ bottom: 0;
42
+- z-index: 3;
43
+ }
44
+
45
+ #mailview-right.fullwidth {
46
+@@ -224,7 +223,6 @@ html.mozilla #mailboxlist > li:first-child {
47
+ left: 0;
48
+ height: 40px;
49
+ white-space: nowrap;
50
+- z-index: 10;
51
+ }
52
+
53
+ #messagetoolbar.fullwidth {
54
+--
55
+2.13.0
56
+
57
0003-Fix-addressbook-searching-by-gender-5757.patch
Added
43
1
2
+From 58d7cdc3fcff334d29bcd7d6e7ceb4f0a360e41a Mon Sep 17 00:00:00 2001
3
+From: Aleksander Machniak <alec@alec.pl>
4
+Date: Thu, 11 May 2017 08:56:42 +0200
5
+Subject: [PATCH 3/6] Fix addressbook searching by gender (#5757)
6
+
7
+---
8
+ CHANGELOG | 1 +
9
+ program/lib/Roundcube/rcube_addressbook.php | 5 +++++
10
+ 2 files changed, 6 insertions(+)
11
+
12
+diff --git a/CHANGELOG b/CHANGELOG
13
+index e83c007ce..b71909661 100644
14
+--- a/CHANGELOG
15
++++ b/CHANGELOG
16
+@@ -3,6 +3,7 @@ CHANGELOG Roundcube Webmail
17
+
18
+ - Fix bug where comment notation within style tag would cause the whole style to be ignored (#5747)
19
+ - Fix bug where it wasn't possible to scroll folders list in Edge (#5750)
20
++- Fix addressbook searching by gender (#5757)
21
+
22
+ RELEASE 1.2.5
23
+ -------------
24
+diff --git a/program/lib/Roundcube/rcube_addressbook.php b/program/lib/Roundcube/rcube_addressbook.php
25
+index 1db4c303d..ae56bab5a 100644
26
+--- a/program/lib/Roundcube/rcube_addressbook.php
27
++++ b/program/lib/Roundcube/rcube_addressbook.php
28
+@@ -670,6 +670,11 @@ abstract class rcube_addressbook
29
+ && $value->format('Ymd') == $search->format('Ymd'));
30
+ }
31
+
32
++ // Gender is a special value, must use strict comparison (#5757)
33
++ if ($colname == 'gender') {
34
++ $mode = self::SEARCH_STRICT;
35
++ }
36
++
37
+ // composite field, e.g. address
38
+ foreach ((array)$value as $val) {
39
+ $val = mb_strtolower($val);
40
+--
41
+2.13.0
42
+
43
0004-Enigma-Fix-compatibility-with-assets_dir.patch
Added
68
1
2
+From 793bf96747237641082169ac0dceeb8834db993a Mon Sep 17 00:00:00 2001
3
+From: Aleksander Machniak <alec@alec.pl>
4
+Date: Sun, 21 May 2017 09:49:42 +0200
5
+Subject: [PATCH 4/6] Enigma: Fix compatibility with assets_dir
6
+
7
+---
8
+ CHANGELOG | 1 +
9
+ plugins/enigma/lib/enigma_ui.php | 20 ++++----------------
10
+ 2 files changed, 5 insertions(+), 16 deletions(-)
11
+
12
+diff --git a/CHANGELOG b/CHANGELOG
13
+index b71909661..d2a648e15 100644
14
+--- a/CHANGELOG
15
++++ b/CHANGELOG
16
+@@ -1,6 +1,7 @@
17
+ CHANGELOG Roundcube Webmail
18
+ ===========================
19
+
20
++- Enigma: Fix compatibility with assets_dir
21
+ - Fix bug where comment notation within style tag would cause the whole style to be ignored (#5747)
22
+ - Fix bug where it wasn't possible to scroll folders list in Edge (#5750)
23
+ - Fix addressbook searching by gender (#5757)
24
+diff --git a/plugins/enigma/lib/enigma_ui.php b/plugins/enigma/lib/enigma_ui.php
25
+index 03d7c208a..f4d9c48ba 100644
26
+--- a/plugins/enigma/lib/enigma_ui.php
27
++++ b/plugins/enigma/lib/enigma_ui.php
28
+@@ -116,14 +116,12 @@ class enigma_ui
29
+ */
30
+ function add_css()
31
+ {
32
+- if ($this->css_loaded)
33
++ if ($this->css_loaded) {
34
+ return;
35
+-
36
+- $skin_path = $this->enigma->local_skin_path();
37
+- if (is_file($this->home . "/$skin_path/enigma.css")) {
38
+- $this->enigma->include_stylesheet("$skin_path/enigma.css");
39
+ }
40
+
41
++ $skin_path = $this->enigma->local_skin_path();
42
++ $this->enigma->include_stylesheet("$skin_path/enigma.css");
43
+ $this->css_loaded = true;
44
+ }
45
+
46
+@@ -185,17 +183,7 @@ class enigma_ui
47
+ */
48
+ function tpl_key_frame($attrib)
49
+ {
50
+- if (!$attrib['id']) {
51
+- $attrib['id'] = 'rcmkeysframe';
52
+- }
53
+-
54
+- $attrib['name'] = $attrib['id'];
55
+-
56
+- $this->rc->output->set_env('contentframe', $attrib['name']);
57
+- $this->rc->output->set_env('blankpage', $attrib['src'] ?
58
+- $this->rc->output->abs_url($attrib['src']) : 'program/resources/blank.gif');
59
+-
60
+- return $this->rc->output->frame($attrib);
61
++ return $this->rc->output->frame($attrib, true);
62
+ }
63
+
64
+ /**
65
+--
66
+2.13.0
67
+
68
0005-Fix-SQL-syntax-error-on-MariaDB-10.2-5774.patch
Added
49
1
2
+From 913ffcfbbec71529c7ffb1ee675bd7b5decf571f Mon Sep 17 00:00:00 2001
3
+From: Aleksander Machniak <alec@alec.pl>
4
+Date: Sun, 28 May 2017 20:23:13 +0200
5
+Subject: [PATCH 5/6] Fix SQL syntax error on MariaDB 10.2 (#5774)
6
+
7
+---
8
+ CHANGELOG | 1 +
9
+ program/lib/Roundcube/rcube_contacts.php | 4 ++--
10
+ 2 files changed, 3 insertions(+), 2 deletions(-)
11
+
12
+diff --git a/CHANGELOG b/CHANGELOG
13
+index d2a648e15..2cb45faba 100644
14
+--- a/CHANGELOG
15
++++ b/CHANGELOG
16
+@@ -5,6 +5,7 @@ CHANGELOG Roundcube Webmail
17
+ - Fix bug where comment notation within style tag would cause the whole style to be ignored (#5747)
18
+ - Fix bug where it wasn't possible to scroll folders list in Edge (#5750)
19
+ - Fix addressbook searching by gender (#5757)
20
++- Fix SQL syntax error on MariaDB 10.2 (#5774)
21
+
22
+ RELEASE 1.2.5
23
+ -------------
24
+diff --git a/program/lib/Roundcube/rcube_contacts.php b/program/lib/Roundcube/rcube_contacts.php
25
+index ef42328fe..532a5685f 100644
26
+--- a/program/lib/Roundcube/rcube_contacts.php
27
++++ b/program/lib/Roundcube/rcube_contacts.php
28
+@@ -502,7 +502,7 @@ class rcube_contacts extends rcube_addressbook
29
+
30
+ // count contacts for this user
31
+ $sql_result = $this->db->query(
32
+- "SELECT COUNT(c.`contact_id`) AS rows".
33
++ "SELECT COUNT(c.`contact_id`) AS cnt".
34
+ " FROM " . $this->db->table_name($this->db_name, true) . " AS c".
35
+ $join.
36
+ " WHERE c.`del` <> 1".
37
+@@ -515,7 +515,7 @@ class rcube_contacts extends rcube_addressbook
38
+
39
+ $sql_arr = $this->db->fetch_assoc($sql_result);
40
+
41
+- $this->cache['count'] = (int) $sql_arr['rows'];
42
++ $this->cache['count'] = (int) $sql_arr['cnt'];
43
+
44
+ return $this->cache['count'];
45
+ }
46
+--
47
+2.13.0
48
+
49
0006-Fix-bug-where-it-wasn-t-possible-to-set-timezone-to-.patch
Added
50
1
2
+From 3d498cd632362d2fb19f578d8e96e8785580c490 Mon Sep 17 00:00:00 2001
3
+From: Aleksander Machniak <alec@alec.pl>
4
+Date: Sat, 3 Jun 2017 19:00:00 +0200
5
+Subject: [PATCH 6/6] Fix bug where it wasn't possible to set timezone to
6
+ auto-detected value (#5782)
7
+
8
+---
9
+ CHANGELOG | 1 +
10
+ program/lib/Roundcube/rcube_user.php | 4 +++-
11
+ 2 files changed, 4 insertions(+), 1 deletion(-)
12
+
13
+diff --git a/CHANGELOG b/CHANGELOG
14
+index 2cb45faba..e4d5c375d 100644
15
+--- a/CHANGELOG
16
++++ b/CHANGELOG
17
+@@ -6,6 +6,7 @@ CHANGELOG Roundcube Webmail
18
+ - Fix bug where it wasn't possible to scroll folders list in Edge (#5750)
19
+ - Fix addressbook searching by gender (#5757)
20
+ - Fix SQL syntax error on MariaDB 10.2 (#5774)
21
++- Fix bug where it wasn't possible to set timezone to auto-detected value (#5782)
22
+
23
+ RELEASE 1.2.5
24
+ -------------
25
+diff --git a/program/lib/Roundcube/rcube_user.php b/program/lib/Roundcube/rcube_user.php
26
+index bda6e54b6..472cec368 100644
27
+--- a/program/lib/Roundcube/rcube_user.php
28
++++ b/program/lib/Roundcube/rcube_user.php
29
+@@ -188,14 +188,16 @@ class rcube_user
30
+ $a_user_prefs = $plugin['prefs'];
31
+ $old_prefs = $plugin['old'];
32
+ $config = $this->rc->config;
33
++ $defaults = $config->all();
34
+
35
+ // merge (partial) prefs array with existing settings
36
+ $this->prefs = $save_prefs = $a_user_prefs + $old_prefs;
37
+ unset($save_prefs['language']);
38
+
39
+ // don't save prefs with default values if they haven't been changed yet
40
++ // Warning: we use result of rcube_config::all() here instead of just get() (#5782)
41
+ foreach ($a_user_prefs as $key => $value) {
42
+- if ($value === null || (!isset($old_prefs[$key]) && ($value == $config->get($key)))) {
43
++ if ($value === null || (!isset($old_prefs[$key]) && $value === $defaults[$key])) {
44
+ unset($save_prefs[$key]);
45
+ }
46
+ }
47
+--
48
+2.13.0
49
+
50
debian.changelog
Changed
13
1
2
+roundcubemail (1.2.5-0~kolab6) unstable; urgency=low
3
+
4
+ * Fix saving preferences (timezone)
5
+ * Fix syntax error against MariaDB 10.2
6
+ * Fix assets for enigma plugin
7
+
8
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Fri, 16 Jun 2017 11:11:11 +0200
9
+
10
roundcubemail (1.2.5-0~kolab5) unstable; urgency=low
11
12
* Fix upgrade path
13
debian.series
Changed
9
1
2
default-configuration.patch -p1
3
+0001-Fix-bug-where-comment-notation-within-style-tag-woul.patch -p1
4
+0002-Fix-bug-where-it-wasn-t-possible-to-scroll-folders-l.patch -p1
5
+0003-Fix-addressbook-searching-by-gender-5757.patch -p1
6
+0004-Enigma-Fix-compatibility-with-assets_dir.patch -p1
7
+0005-Fix-SQL-syntax-error-on-MariaDB-10.2-5774.patch -p1
8
+0006-Fix-bug-where-it-wasn-t-possible-to-set-timezone-to-.patch -p1
9
roundcubemail.dsc
Changed
10
1
2
Source: roundcubemail
3
Binary: roundcubemail
4
Architecture: all
5
-Version: 1:1.2.5-0~kolab5
6
+Version: 1:1.2.5-0~kolab6
7
Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>
8
Uploaders: Paul Klos <kolab@klos2day.nl>
9
Homepage: http://www.roundcube.net/
10
Refresh
Refresh
Login required, please
login
in order to comment
Request History
vanmeeuwen created request almost 8 years ago
Various code bug fixes
vanmeeuwen approved review almost 8 years ago
Accept
vanmeeuwen accepted review almost 8 years ago
Accept
vanmeeuwen accepted review almost 8 years ago
Accept
vanmeeuwen accepted request almost 8 years ago
Accept