[geeklog-cvs] geeklog-1.3/system lib-sessions.php,1.23,1.24

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Sat Sep 27 12:47:42 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/system
In directory geeklog_prod:/tmp/cvs-serv17785

Modified Files:
	lib-sessions.php 
Log Message:
When trying to guess the value for $_CONF['cookiedomain'], take out the port number, if there is one in the URL (bug #75).


Index: lib-sessions.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/lib-sessions.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** lib-sessions.php	1 Sep 2003 14:43:04 -0000	1.23
--- lib-sessions.php	27 Sep 2003 16:47:40 -0000	1.24
***************
*** 43,47 ****
  
  if (empty ($_CONF['cookiedomain'])) {
!     preg_match ("/\/\/([^\/]*)/", $_CONF['site_url'], $server);
      if (substr ($server[1], 0, 4) == 'www.') {
          $_CONF['cookiedomain'] = substr ($server[1], 3);
--- 43,47 ----
  
  if (empty ($_CONF['cookiedomain'])) {
!     preg_match ("/\/\/([^\/:]*)/", $_CONF['site_url'], $server);
      if (substr ($server[1], 0, 4) == 'www.') {
          $_CONF['cookiedomain'] = substr ($server[1], 3);





More information about the geeklog-cvs mailing list