httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@hyperreal.com>
Subject cvs commit: apache/src mod_usertrack.c
Date Tue, 19 Nov 1996 23:17:33 GMT
brian       96/11/19 15:17:32

  Modified:    src       mod_usertrack.c
  Log:
  Reviewed by:	Roy Fielding, Randy Terbush, Jim Jagielski, Mark Cox
  Submitted by:	Brian Behlendorf
  
  The default for tracking is now off.  Also, change the "CookieEnable" command
  to "CookieTracking".
  
  Revision  Changes    Path
  1.5       +5 -5      apache/src/mod_usertrack.c
  
  Index: mod_usertrack.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_usertrack.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -C3 -r1.4 -r1.5
  *** mod_usertrack.c	1996/11/03 20:48:38	1.4
  --- mod_usertrack.c	1996/11/19 23:17:30	1.5
  ***************
  *** 171,182 ****
    
    int spot_cookie(request_rec *r)
    {
  !     int *disable = (int *)get_module_config(r->per_dir_config,
    					    &usertrack_module);
        char *cookie;
        char *value;
    
  !     if (*disable) return DECLINED;
    
        if ((cookie = table_get (r->headers_in, "Cookie")))
          if ((value=strstr(cookie,COOKIE_NAME))) {
  --- 171,182 ----
    
    int spot_cookie(request_rec *r)
    {
  !     int *enable = (int *)get_module_config(r->per_dir_config,
    					    &usertrack_module);
        char *cookie;
        char *value;
    
  !     if (!*enable) return DECLINED;
    
        if ((cookie = table_get (r->headers_in, "Cookie")))
          if ((value=strstr(cookie,COOKIE_NAME))) {
  ***************
  *** 210,218 ****
        return (void *)pcalloc(p, sizeof(int));
    }
    
  ! const char *set_cookie_disable (cmd_parms *cmd, int *c, int arg)
    {
  !     *c = !arg;
        return NULL;
    }
    
  --- 210,218 ----
        return (void *)pcalloc(p, sizeof(int));
    }
    
  ! const char *set_cookie_enable (cmd_parms *cmd, int *c, int arg)
    {
  !     *c = arg;
        return NULL;
    }
    
  ***************
  *** 284,290 ****
    command_rec cookie_log_cmds[] = {
    { "CookieExpires", set_cookie_exp, NULL, RSRC_CONF, TAKE1,
        "an expiry date code" },
  ! { "CookieEnable", set_cookie_disable, NULL, OR_FILEINFO, FLAG,
        "whether or not to enable cookies" },
    { NULL }
    };
  --- 284,290 ----
    command_rec cookie_log_cmds[] = {
    { "CookieExpires", set_cookie_exp, NULL, RSRC_CONF, TAKE1,
        "an expiry date code" },
  ! { "CookieTracking", set_cookie_enable, NULL, OR_FILEINFO, FLAG,
        "whether or not to enable cookies" },
    { NULL }
    };
  
  
  

Mime
View raw message