pdontthink | 6 Apr 07:33 2016
Picon
Picon

SF.net SVN: squirrelmail:[14552] trunk/squirrelmail/functions/global.php

Revision: 14552
          http://sourceforge.net/p/squirrelmail/code/14552
Author:   pdontthink
Date:     2016-04-06 05:33:06 +0000 (Wed, 06 Apr 2016)
Log Message:
-----------
Per comments in the commit - setting the session cookie over and over can be troublesome, but doing the
obvious and defaulting to *replace* cookies causes logins to fail due to something I don't care to debug -
session cookie is complex through all the pages involved in a login request - instead we use a simple static
cache to prevent useless duplicate cookie headers

Modified Paths:
--------------
    trunk/squirrelmail/functions/global.php

Modified: trunk/squirrelmail/functions/global.php
===================================================================
--- trunk/squirrelmail/functions/global.php	2016-04-06 05:27:52 UTC (rev 14551)
+++ trunk/squirrelmail/functions/global.php	2016-04-06 05:33:06 UTC (rev 14552)
 <at>  <at>  -589,6 +589,21  <at>  <at> 
 function sqsetcookie($sName, $sValue='deleted', $iExpire=0, $sPath="", $sDomain="",
                      $bSecure=false, $bHttpOnly=true, $bReplace=false) {

+    // some environments can get overwhelmed by an excessive
+    // setting of the same cookie over and over (e.g., many
+    // calls to this function via sqsession_is_active() result
+    // in repeated setting of the session cookie when $bReplace
+    // is FALSE, but something odd happens (during login only)
+    // if we change that to default TRUE) ... so we keep our own
+    // naive per-request name/value cache and only set the cookie
(Continue reading)

pdontthink | 6 Apr 07:27 2016
Picon
Picon

SF.net SVN: squirrelmail:[14551] branches/SM-1_4-STABLE/squirrelmail/ functions/global.php

Revision: 14551
          http://sourceforge.net/p/squirrelmail/code/14551
Author:   pdontthink
Date:     2016-04-06 05:27:52 +0000 (Wed, 06 Apr 2016)
Log Message:
-----------
Previous change causes logins to fail, due to something I don't care to debug - session cookie is complex
through all the pages involved in a login request - instead we revert the last commit and use a simple static
cache to prevent useless duplicate cookie headers

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/functions/global.php

Modified: branches/SM-1_4-STABLE/squirrelmail/functions/global.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/global.php	2016-04-06 04:52:09 UTC (rev 14550)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/global.php	2016-04-06 05:27:52 UTC (rev 14551)
 <at>  <at>  -511,8 +511,23  <at>  <at> 
  *
  */
 function sqsetcookie($sName, $sValue='deleted', $iExpire=0, $sPath="", $sDomain="",
-                     $bSecure=false, $bHttpOnly=true, $bReplace=true) {
+                     $bSecure=false, $bHttpOnly=true, $bReplace=false) {

+    // some environments can get overwhelmed by an excessive
+    // setting of the same cookie over and over (e.g., many
+    // calls to this function via sqsession_is_active() result
+    // in repeated setting of the session cookie when $bReplace
+    // is FALSE, but something odd happens (during login only)
(Continue reading)

pdontthink | 6 Apr 06:52 2016
Picon
Picon

SF.net SVN: squirrelmail:[14550] branches/SM-1_4-STABLE/squirrelmail/ functions/global.php

Revision: 14550
          http://sourceforge.net/p/squirrelmail/code/14550
Author:   pdontthink
Date:     2016-04-06 04:52:09 +0000 (Wed, 06 Apr 2016)
Log Message:
-----------
Why did we default to putting multiple cookie headers for same name? I think this may have been a mistake,
please give heads up if this creates any problems; if it was intentional

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/functions/global.php

Modified: branches/SM-1_4-STABLE/squirrelmail/functions/global.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/global.php	2016-02-01 18:22:40 UTC (rev 14549)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/global.php	2016-04-06 04:52:09 UTC (rev 14550)
 <at>  <at>  -511,7 +511,7  <at>  <at> 
  *
  */
 function sqsetcookie($sName, $sValue='deleted', $iExpire=0, $sPath="", $sDomain="",
-                     $bSecure=false, $bHttpOnly=true, $bReplace=false) {
+                     $bSecure=false, $bHttpOnly=true, $bReplace=true) {

     // if we have a secure connection then limit the cookies to https only.
     global $is_secure_connection;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.

(Continue reading)

pdontthink | 1 Feb 19:22 2016
Picon
Picon

SF.net SVN: squirrelmail:[14549] branches/SM-1_4-STABLE/squirrelmail/src/ help.php

Revision: 14549
          http://sourceforge.net/p/squirrelmail/code/14549
Author:   pdontthink
Date:     2016-02-01 18:22:40 +0000 (Mon, 01 Feb 2016)
Log Message:
-----------
Add more accurate error reporting

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/src/help.php

Modified: branches/SM-1_4-STABLE/squirrelmail/src/help.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/src/help.php	2016-02-01 10:36:15 UTC (rev 14548)
+++ branches/SM-1_4-STABLE/squirrelmail/src/help.php	2016-02-01 18:22:40 UTC (rev 14549)
 <at>  <at>  -158,17 +158,27  <at>  <at> 
     // Get the chapter numbers, title and decriptions.
     for ($i=0, $cnt = count($helpdir); $i < $cnt; $i++) {
         if (file_exists("../help/$user_language/$helpdir[$i]")) {
-            // First try the selected language.
-            $doc = file("../help/$user_language/$helpdir[$i]");
-            $help_info = get_info($doc, 0);
-            $toc[] = array($i+1, $help_info[0], $help_info[2]);
+            if (is_readable("../help/$user_language/$helpdir[$i]")) {
+                // First try the selected language.
+                $doc = file("../help/$user_language/$helpdir[$i]");
+                $help_info = get_info($doc, 0);
+                $toc[] = array($i+1, $help_info[0], $help_info[2]);
+            } else {
(Continue reading)

pdontthink | 1 Feb 11:36 2016
Picon
Picon

SF.net SVN: squirrelmail:[14548] branches/SM-1_4-STABLE/squirrelmail/ plugins/mail_fetch/setup.php

Revision: 14548
          http://sourceforge.net/p/squirrelmail/code/14548
Author:   pdontthink
Date:     2016-02-01 10:36:15 +0000 (Mon, 01 Feb 2016)
Log Message:
-----------
Fix spacing issue

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/setup.php

Modified: branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/setup.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/setup.php	2016-02-01 04:33:04 UTC
(rev 14547)
+++ branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/setup.php	2016-02-01 10:36:15 UTC
(rev 14548)
 <at>  <at>  -31,7 +31,7  <at>  <at> 

 function mail_fetch_link() {
     displayInternalLink('plugins/mail_fetch/fetch.php', _("Fetch"), '');
-    echo '&nbsp;&nbsp;';
+    echo "&nbsp;&nbsp;\n";
 }

 function mail_fetch_load_pref() {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.
(Continue reading)

pdontthink | 1 Feb 05:33 2016
Picon
Picon

SF.net SVN: squirrelmail:[14547] branches/SM-1_4-STABLE/squirrelmail/ plugins/administrator/defines.php

Revision: 14547
          http://sourceforge.net/p/squirrelmail/code/14547
Author:   pdontthink
Date:     2016-02-01 04:33:04 +0000 (Mon, 01 Feb 2016)
Log Message:
-----------
Fix syntax error

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/plugins/administrator/defines.php

Modified: branches/SM-1_4-STABLE/squirrelmail/plugins/administrator/defines.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/plugins/administrator/defines.php	2016-01-09
19:00:58 UTC (rev 14546)
+++ branches/SM-1_4-STABLE/squirrelmail/plugins/administrator/defines.php	2016-02-01
04:33:04 UTC (rev 14547)
 <at>  <at>  -243,6 +243,7  <at>  <at> 
                  '$edit_identity' => array( 'name' => _("Allow editing of identities"),
                                             'type' => SMOPT_TYPE_BOOLEAN ),
                  '$edit_name' => array( 'name' => _("Allow editing of full name"),
+                                        'type' => SMOPT_TYPE_BOOLEAN ),
                  '$edit_reply_to' => array( 'name' => _("Allow editing of reply-to address"),
                                         'type' => SMOPT_TYPE_BOOLEAN ),
                  '$hide_auth_header' => array( 'name' => _("Remove username from headers"),

This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.

(Continue reading)

pdontthink | 9 Jan 20:00 2016
Picon
Picon

SF.net SVN: squirrelmail:[14546] branches/SM-1_4-STABLE/squirrelmail/src/ configtest.php

Revision: 14546
          http://sourceforge.net/p/squirrelmail/code/14546
Author:   pdontthink
Date:     2016-01-09 19:00:58 +0000 (Sat, 09 Jan 2016)
Log Message:
-----------
Update checks to reflect recent changes

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/src/configtest.php

Modified: branches/SM-1_4-STABLE/squirrelmail/src/configtest.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/src/configtest.php	2016-01-01 21:30:56 UTC (rev 14545)
+++ branches/SM-1_4-STABLE/squirrelmail/src/configtest.php	2016-01-09 19:00:58 UTC (rev 14546)
 <at>  <at>  -359,9 +359,10  <at>  <at> 
     "</tt> (location base " . (empty($config_location_base) ? 'autodetected' : 'set to <tt>' .
     sm_encode_html_special_chars($config_location_base)."</tt>") . ")<br />\n";

-/* check outgoing mail */
+/* check minimal requirements for other security options */

-if($use_smtp_tls || $use_imap_tls) {
+/* imaps or ssmtp */
+if($use_smtp_tls == 1 || $use_imap_tls == 1) {
     if(!check_php_version(4,3,0)) {
         do_err('You need at least PHP 4.3.0 for SMTP/IMAP TLS!');
     }
 <at>  <at>  -369,7 +370,21  <at>  <at> 
(Continue reading)

pdontthink | 1 Jan 21:59 2016
Picon
Picon

SF.net SVN: squirrelmail:[14539] trunk/squirrelmail

Revision: 14539
          http://sourceforge.net/p/squirrelmail/code/14539
Author:   pdontthink
Date:     2016-01-01 20:59:53 +0000 (Fri, 01 Jan 2016)
Log Message:
-----------
Happy New Year

Modified Paths:
--------------
    trunk/squirrelmail/class/deliver/Deliver.class.php
    trunk/squirrelmail/class/deliver/Deliver_IMAP.class.php
    trunk/squirrelmail/class/deliver/Deliver_SMTP.class.php
    trunk/squirrelmail/class/deliver/Deliver_SendMail.class.php
    trunk/squirrelmail/class/deliver/index.php
    trunk/squirrelmail/class/error.class.php
    trunk/squirrelmail/class/helper/VCard.class.php
    trunk/squirrelmail/class/helper/index.php
    trunk/squirrelmail/class/index.php
    trunk/squirrelmail/class/l10n/gettext.class.php
    trunk/squirrelmail/class/l10n/index.php
    trunk/squirrelmail/class/l10n/streams.class.php
    trunk/squirrelmail/class/l10n.class.php
    trunk/squirrelmail/class/mime/AddressStructure.class.php
    trunk/squirrelmail/class/mime/ContentType.class.php
    trunk/squirrelmail/class/mime/Disposition.class.php
    trunk/squirrelmail/class/mime/Language.class.php
    trunk/squirrelmail/class/mime/Message.class.php
    trunk/squirrelmail/class/mime/MessageHeader.class.php
    trunk/squirrelmail/class/mime/Rfc822Header.class.php
(Continue reading)

pdontthink | 1 Jan 22:31 2016
Picon
Picon

SF.net SVN: squirrelmail:[14545] trunk/locales

Revision: 14545
          http://sourceforge.net/p/squirrelmail/code/14545
Author:   pdontthink
Date:     2016-01-01 21:30:56 +0000 (Fri, 01 Jan 2016)
Log Message:
-----------
Happy New Year

Modified Paths:
--------------
    trunk/locales/independent_strings.txt
    trunk/locales/locale/ar/LC_MESSAGES/plugins/address_add.po
    trunk/locales/locale/ar/setup.php
    trunk/locales/locale/bg_BG/LC_MESSAGES/change_pass.po
    trunk/locales/locale/bg_BG/LC_MESSAGES/plugins/address_add.po
    trunk/locales/locale/bg_BG/LC_MESSAGES/squirrelmail.po
    trunk/locales/locale/bg_BG/setup.php
    trunk/locales/locale/bn_BD/LC_MESSAGES/abook_import_export.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/advanced_settings.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/archive_mail.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/askuserinfo.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/calendar.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/captcha.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/censor.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/change_sqlpass.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/check_quota.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/compatibility.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/compose_extras.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/contactclean.po
    trunk/locales/locale/bn_BD/LC_MESSAGES/cookie_warning.po
(Continue reading)

pdontthink | 1 Jan 22:08 2016
Picon
Picon

SF.net SVN: squirrelmail:[14544] trunk/util/update-copyright

Revision: 14544
          http://sourceforge.net/p/squirrelmail/code/14544
Author:   pdontthink
Date:     2016-01-01 21:08:57 +0000 (Fri, 01 Jan 2016)
Log Message:
-----------
Update define statement too

Modified Paths:
--------------
    trunk/util/update-copyright

Modified: trunk/util/update-copyright
===================================================================
--- trunk/util/update-copyright	2016-01-01 21:08:02 UTC (rev 14543)
+++ trunk/util/update-copyright	2016-01-01 21:08:57 UTC (rev 14544)
 <at>  <at>  -58,6 +58,20  <at>  <at> 
             `sed -i "1,10 s/\(copyright .*\)-2[0-9][0-9][0-9]\( The SquirrelMail\)/\1-$this_year\2/i" $file`

 
+         # make sure to get the define statement in trunk/include/constants.php
+         #
+         elif [[ $file == 'constants.php' ]] && [[ $1 == 'include' ]]; then
+
+            echo "   Updating $file (including DEFINE statement)"
+
+            # this line can be used to update copyrights
+            # explicitly from just last year to this year
+            #
+            #`sed -i "s/1999-$last_year/1999-$this_year/" $file`
(Continue reading)

pdontthink | 1 Jan 22:08 2016
Picon
Picon

SF.net SVN: squirrelmail:[14543] trunk/util

Revision: 14543
          http://sourceforge.net/p/squirrelmail/code/14543
Author:   pdontthink
Date:     2016-01-01 21:08:02 +0000 (Fri, 01 Jan 2016)
Log Message:
-----------
Happy New Year

Modified Paths:
--------------
    trunk/util/make-release-imap-proxy
    trunk/util/make-release-webmail
    trunk/util/update-copyright

Modified: trunk/util/make-release-imap-proxy
===================================================================
--- trunk/util/make-release-imap-proxy	2016-01-01 21:07:02 UTC (rev 14542)
+++ trunk/util/make-release-imap-proxy	2016-01-01 21:08:02 UTC (rev 14543)
 <at>  <at>  -4,7 +4,7  <at>  <at> 
 #
 # It requires one argument -- the version number.
 #
-# Copyright 1999-2015 The SquirrelMail Project Team
+# Copyright 1999-2016 The SquirrelMail Project Team
 # License   http://opensource.org/licenses/gpl-license.php GNU Public License
 # Version   $Id$
 #

Modified: trunk/util/make-release-webmail
===================================================================
(Continue reading)


Gmane