cvs: php4 /sapi/apache2filter sapi_apache2.c
| From: | Sascha Schumann | Date: | Fri, 27 Oct 2000 10:19:40 +0000 |
| Subject: | cvs: php4 /sapi/apache2filter sapi_apache2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2291@lists.php.net to get a copy of this message | ||
sas Fri Oct 27 03:19:40 2000 EDT
Modified files:
/php4/sapi/apache2filter sapi_apache2.c
Log:
Handle cookies and make use of php_handle_auth_data.
Index: php4/sapi/apache2filter/sapi_apache2.c
diff -u php4/sapi/apache2filter/sapi_apache2.c:1.2 php4/sapi/apache2filter/sapi_apache2.c:1.3
--- php4/sapi/apache2filter/sapi_apache2.c:1.2 Thu Oct 26 14:23:20 2000
+++ php4/sapi/apache2filter/sapi_apache2.c Fri Oct 27 03:19:40 2000
@@ -89,8 +89,12 @@
static char *
php_apache_sapi_read_cookies(SLS_D)
{
+ php_struct *ctx = SG(server_context);
+ const char *http_cookie;
+
+ http_cookie = apr_table_get(ctx->f->r->headers_in, "cookie");
- return 0;
+ return (char *) http_cookie;
}
static void
@@ -183,6 +187,7 @@
if (ctx->state == 0) {
char *content_type;
+ char *auth;
CLS_FETCH();
ELS_FETCH();
PLS_FETCH();
@@ -203,6 +208,9 @@
efree(content_type);
apr_table_set(f->r->headers_in, "Connection", "close");
apr_table_unset(f->r->headers_out, "Content-Length");
+ auth = apr_table_get(f->r->headers_in, "Authorization");
+ if (auth)
+ php_handle_auth_data(auth SLS_CC);
}
/* moves data from bb to ctx->bb */