]> granicus.if.org Git - php/commitdiff
Fixed bug #23417 (compile failure in apache2filter sapi).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 30 Apr 2003 00:47:08 +0000 (00:47 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 30 Apr 2003 00:47:08 +0000 (00:47 +0000)
sapi/apache2filter/sapi_apache2.c

index 51885696407fe64ca3985e331728063aceb3637b..f1f0e9365dbbf19d90f71460d3e0f450caf6115d 100644 (file)
@@ -396,7 +396,7 @@ static void php_apache_request_ctor(ap_filter_t *f, php_struct *ctx TSRMLS_DC)
        apr_table_unset(f->r->headers_out, "Expires");
        apr_table_unset(f->r->headers_out, "ETag");
        apr_table_unset(f->r->headers_in, "Connection");
-       if (!PG(safe_mode) || (PG(safe_mode) && !ap_auth_type(r))) {
+       if (!PG(safe_mode) || (PG(safe_mode) && !ap_auth_type(f->r))) {
                auth = apr_table_get(f->r->headers_in, "Authorization");
                php_handle_auth_data(auth TSRMLS_CC);
        } else {