[pubcookie-dev] CVS update: fox;
webiso/pubcookie/src mod_pubcookie.c,1.164,1.165
fox at washington.edu
fox at washington.edu
Tue Dec 28 15:27:29 PST 2004
Update of /usr/local/cvsroot/webiso/pubcookie/src
In directory webiso-cvs.cac.washington.edu:/var/tmp/cvs-serv9233/webiso/pubcookie/src
Modified Files:
mod_pubcookie.c
Log Message:
Unprotect the post reply URL so an entire site can
be protected.
Index: webiso/pubcookie/src/mod_pubcookie.c
diff -c webiso/pubcookie/src/mod_pubcookie.c:1.164 webiso/pubcookie/src/mod_pubcookie.c:1.165
*** webiso/pubcookie/src/mod_pubcookie.c:1.164 Wed Dec 22 14:14:54 2004
--- webiso/pubcookie/src/mod_pubcookie.c Tue Dec 28 15:27:26 2004
***************
*** 6,12 ****
/** @file mod_pubcookie.c
* Apache pubcookie module
*
! * $Id: mod_pubcookie.c,v 1.164 2004/12/22 22:14:54 willey Exp $
*/
#define MAX_POST_DATA 2048 /* arbitrary */
--- 6,12 ----
/** @file mod_pubcookie.c
* Apache pubcookie module
*
! * $Id: mod_pubcookie.c,v 1.165 2004/12/28 23:27:26 fox Exp $
*/
#define MAX_POST_DATA 2048 /* arbitrary */
***************
*** 1465,1474 ****
if (!ap_auth_type (r))
return DECLINED;
! /* bail if the request is for favicon.ico */
if (!strncasecmp (r->unparsed_uri, "/favicon.ico", 12))
return OK;
/* if it's basic auth then it's not pubcookie */
/*
if( strcasecmp(ap_auth_type(r), "basic") == 0 ) return DECLINED;
--- 1465,1478 ----
if (!ap_auth_type (r))
return DECLINED;
! /* pass if the request is for favicon.ico */
if (!strncasecmp (r->unparsed_uri, "/favicon.ico", 12))
return OK;
+ /* pass if the request is for our post-reply */
+ if (!strcasecmp (r->unparsed_uri, scfg->post_reply_url))
+ return OK;
+
/* if it's basic auth then it's not pubcookie */
/*
if( strcasecmp(ap_auth_type(r), "basic") == 0 ) return DECLINED;
***************
*** 2050,2055 ****
--- 2054,2063 ----
/* pass if the request is for favicon.ico */
if (!strncasecmp (r->unparsed_uri, "/favicon.ico", 12))
+ return OK;
+
+ /* pass if the request is our post-reply */
+ if (!strcasecmp (r->unparsed_uri, scfg->post_reply_url))
return OK;
/* a failed noprompt login is all we check for */
end of message
More information about the pubcookie-dev
mailing list