[Svn] r3879 - in trunk/roundcubemail: . program/include tests

trac at roundcube.net trac at roundcube.net
Sat Aug 7 14:04:39 CEST 2010


Author: thomasb
Date: 2010-08-07 07:04:39 -0500 (Sat, 07 Aug 2010)
New Revision: 3879

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/index.php
   trunk/roundcubemail/program/include/iniset.php
   trunk/roundcubemail/tests/mailfunc.php
Log:
Fix unit tests + update version

Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2010-08-07 09:44:38 UTC (rev 3878)
+++ trunk/roundcubemail/CHANGELOG	2010-08-07 12:04:39 UTC (rev 3879)
@@ -1,6 +1,8 @@
 CHANGELOG RoundCube Webmail
 ===========================
 
+RELEASE 0.4
+-----------
 - Fix disapearing upload form disapears when user selects a file on Safari (#1486823)
 - Don't replace error messages with loading info (#1486300)
 - Fix JS errors on compose mode switch (#1486870)

Modified: trunk/roundcubemail/index.php
===================================================================
--- trunk/roundcubemail/index.php	2010-08-07 09:44:38 UTC (rev 3878)
+++ trunk/roundcubemail/index.php	2010-08-07 12:04:39 UTC (rev 3879)
@@ -2,9 +2,9 @@
 /*
  +-------------------------------------------------------------------------+
  | RoundCube Webmail IMAP Client                                           |
- | Version 0.3-20090814                                                    |
+ | Version 0.4-20100807                                                    |
  |                                                                         |
- | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                   |
+ | Copyright (C) 2005-2010, RoundCube Dev. - Switzerland                   |
  |                                                                         |
  | This program is free software; you can redistribute it and/or modify    |
  | it under the terms of the GNU General Public License version 2          |

Modified: trunk/roundcubemail/program/include/iniset.php
===================================================================
--- trunk/roundcubemail/program/include/iniset.php	2010-08-07 09:44:38 UTC (rev 3878)
+++ trunk/roundcubemail/program/include/iniset.php	2010-08-07 12:04:39 UTC (rev 3879)
@@ -45,7 +45,9 @@
     define('INSTALL_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
 }
 
-define('RCMAIL_CONFIG_DIR', INSTALL_PATH . 'config');
+if (!defined('RCMAIL_CONFIG_DIR')) {
+    define('RCMAIL_CONFIG_DIR', INSTALL_PATH . 'config');
+}
 
 // make sure path_separator is defined
 if (!defined('PATH_SEPARATOR')) {

Modified: trunk/roundcubemail/tests/mailfunc.php
===================================================================
--- trunk/roundcubemail/tests/mailfunc.php	2010-08-07 09:44:38 UTC (rev 3878)
+++ trunk/roundcubemail/tests/mailfunc.php	2010-08-07 12:04:39 UTC (rev 3879)
@@ -15,7 +15,7 @@
     // simulate environment to successfully include func.inc
     $GLOBALS['RCMAIL'] = $RCMAIL = rcmail::get_instance();
     $GLOBALS['OUTPUT'] = $OUTPUT = $RCMAIL->load_gui();
-    $RCMAIL->action = 'spell';
+    $RCMAIL->action = 'autocomplete';
     $RCMAIL->imap_init(false);
     $IMAP = $RCMAIL->imap;
     
@@ -65,9 +65,9 @@
     
     $this->assertPattern('/<style [^>]+>/', $html2, "Allow styles in safe mode");
     $this->assertPattern('#src="http://evilsite.net/mailings/ex3.jpg"#', $html2, "Allow external images in HTML (safe mode)");
-    $this->assertPattern("#url\('http://evilsite.net/newsletter/image/bg/bg-64.jpg'\)#", $html2, "Allow external images in CSS (safe mode)");
+    $this->assertPattern("#url\('?http://evilsite.net/newsletter/image/bg/bg-64.jpg'?\)#", $html2, "Allow external images in CSS (safe mode)");
     
-    $css = '<link rel="stylesheet" type="text/css" href="./bin/modcss.php?u='.urlencode('http://anysite.net/styles/mail.css').'&c=foo"';
+    $css = '<link rel="stylesheet" type="text/css" href="?_task=utils&_action=modcss&u='.urlencode('http://anysite.net/styles/mail.css').'&c=foo"';
     $this->assertPattern('#'.preg_quote($css).'#', $html2, "Filter external styleseehts with bin/modcss.php");
   }
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list