[geeklog-cvs] geeklog-1.3/system lib-sessions.php,1.20,1.21

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Sat Jun 7 11:25:05 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/system
In directory internal.geeklog.net:/tmp/cvs-serv30856

Modified Files:
	lib-sessions.php 
Log Message:
Extend "localhost" workaround for all local names (e.g. machine names).


Index: lib-sessions.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/lib-sessions.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** lib-sessions.php	6 Jun 2003 17:11:11 -0000	1.20
--- lib-sessions.php	7 Jun 2003 15:25:03 -0000	1.21
***************
*** 47,51 ****
          $_CONF['cookiedomain'] = substr ($server[1], 3);
      } else {
!         if ($server[1] == 'localhost') {
              $_CONF['cookiedomain'] = '';
          } else {
--- 47,52 ----
          $_CONF['cookiedomain'] = substr ($server[1], 3);
      } else {
!         if (strchr ($server[1], '.') === false) {
!             // e.g. 'localhost' or other local names
              $_CONF['cookiedomain'] = '';
          } else {





More information about the geeklog-cvs mailing list