Changes of Revision 92

roundcubemail.spec Changed
x
 
1
@@ -43,7 +43,7 @@
2
 Name:           roundcubemail
3
 Version:        1.1.0
4
 
5
-Release:        1%{?dist}
6
+Release:        2%{?dist}
7
 
8
 Summary:        Round Cube Webmail is a browser-based multilingual IMAP client
9
 
10
@@ -2993,6 +2993,9 @@
11
 %defattr(-,root,root,-)
12
 
13
 %changelog
14
+* Sun Feb 15 2015 Daniel Hoffend <dh@dotlan.net> - - 1.1.0-2
15
+- Remove odfviewer configuration in roundcubemail.conf
16
+
17
 * Sat Feb 14 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 1.1.0-1
18
 - Final release of 1.1.0
19
 
20
debian.changelog Changed
12
 
1
@@ -1,3 +1,10 @@
2
+roundcubemail (1:1.1.0-0~kolab2) unstable; urgency=low
3
+
4
+  * Fix CSRF RewriteRules for Debian/Ubuntu #4573
5
+  * Remove odfviewer configuration in roundcubemail.conf
6
+
7
+ -- Daniel Hoffend <dh@dotlan.net>  Sun, 15 Feb 2015 23:58:00 +0100
8
+
9
 roundcubemail (1:1.1.0-0~kolab1) unstable; urgency=low
10
 
11
   * Stable upstream release 1.1.0
12
debian.rules Changed
10
 
1
@@ -97,5 +97,8 @@
2
    mkdir -p $(CURDIR)/debian/roundcubemail/etc/apache2/sites-available
3
    install -pm 644 $(CURDIR)/debian/conf/roundcubemail.conf $(CURDIR)/debian/roundcubemail/etc/apache2/sites-available/roundcubemail.conf
4
 
5
+   # Install .htaccess cause rewrite rules in roundcubemail.conf are omitted thanks to default-vhost
6
+   install -pm 644 $(CURDIR)/debian/conf/.htaccess $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/public_html/.htaccess
7
+
8
 override_dh_compress:
9
    dh_compress -Xsql   
10
debian.tar.gz/conf/.htaccess Added
8
 
1
@@ -0,0 +1,6 @@
2
+# rewrite rule for CSRF
3
+RewriteEngine On
4
+RewriteCond %{REQUEST_URI}  ^/roundcubemail
5
+RewriteRule ^[a-f0-9]{16}(/.*) /roundcubemail/$1 [PT,L]
6
+RewriteCond %{REQUEST_URI}  ^/webmail
7
+RewriteRule ^[a-f0-9]{16}(/.*) /webmail/$1 [PT,L]
8
debian.tar.gz/conf/roundcubemail.conf Changed
10
 
1
@@ -21,7 +21,7 @@
2
 
3
 <Directory "/usr/share/roundcubemail/public_html">
4
     Options +FollowSymLinks
5
-    AllowOverride None
6
+    AllowOverride FileInfo
7
     <ifModule mod_authz_core.c>
8
         Require all granted
9
     </ifModule>
10
debian.tar.gz/postinst Changed
16
 
1
@@ -39,14 +39,6 @@
2
     configure)
3
         fixperms
4
         update_database
5
-        if [ -e "/etc/apache2/sites-available/roundcubemail.conf" -a ! -e "/etc/apache2/sites-available/000-default" ]; then
6
-            newConfigLines="\tRewriteEngine On\n \
7
-\tRewriteRule ^/roundcubemail/[a-f0-9]{16}/(.*) /roundcubemail/\$1 [PT,L]\n \
8
-\tRewriteRule ^/webmail/[a-f0-9]{16}/(.*) /webmail/\$1 [PT,L]\n"
9
-            sed -i -e "s~</VirtualHost>~$newConfigLines</VirtualHost>~" /etc/apache2/sites-enabled/000-default
10
-
11
-            sed -i -e "s~Rewrite~#Rewrite~g" /etc/apache2/sites-available/roundcubemail.conf
12
-        fi
13
         a2enmod rewrite
14
         if [ -e "/etc/apache2/sites-available/roundcubemail.conf" -a ! -e "/etc/apache2/sites-enabled/roundcubemail.conf" ]; then
15
             a2ensite roundcubemail.conf
16
roundcubemail.conf Changed
18
 
1
@@ -19,16 +19,6 @@
2
     </IfModule>
3
 </LocationMatch>
4
 
5
-<LocationMatch "/(roundcubemail|webmail)/assets/plugins/odfviewer/files/">
6
-    <IfModule mod_deflate.c>
7
-        SetOutputFilter NONE
8
-    </IfModule>
9
-
10
-    <IfModule mod_expires.c>
11
-        ExpiresActive Off
12
-    </IfModule>
13
-</LocationMatch>
14
-
15
 <Directory "/usr/share/roundcubemail/public_html">
16
     Options +FollowSymLinks
17
     AllowOverride None
18
roundcubemail.dsc Changed
10
 
1
@@ -2,7 +2,7 @@
2
 Source: roundcubemail
3
 Binary: roundcubemail
4
 Architecture: all
5
-Version: 1:1.1.0-0~kolab1
6
+Version: 1:1.1.0-0~kolab2
7
 Maintainer: Debian Roundcube Maintainers <pkg-roundcube-maintainers@lists.alioth.debian.org>
8
 Uploaders: Vincent Bernat <bernat@debian.org>, Romain Beauxis <toots@rastageeks.org>, Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl>
9
 Homepage: http://www.roundcube.net/
10