]> granicus.if.org Git - php/commitdiff
Let's not mess with r->allowed here - this should fix bug #32561
authorRasmus Lerdorf <rasmus@php.net>
Fri, 6 Jan 2006 17:54:35 +0000 (17:54 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 6 Jan 2006 17:54:35 +0000 (17:54 +0000)
sapi/apache/mod_php5.c

index 8f82ad064c57553a0d513d486bbb8b9f5c42ddf6..c9ca92e26df09c57a1c54624b1d565167743a81a 100644 (file)
@@ -581,7 +581,6 @@ static int send_php(request_rec *r, int display_source_mode, char *filename)
                 */
                if (!AP(engine)) {
                        r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC);
-                       r->allowed |= (1 << METHODS) - 1;
                        zend_try {
                                zend_ini_deactivate(TSRMLS_C);
                        } zend_end_try();
@@ -839,7 +838,6 @@ static int php_xbithack_handler(request_rec * r)
        TSRMLS_FETCH();
 
        if (!(r->finfo.st_mode & S_IXUSR)) {
-               r->allowed |= (1 << METHODS) - 1;
                return DECLINED;
        }
        per_dir_conf = (HashTable *) get_module_config(r->per_dir_config, &php5_module);
@@ -847,7 +845,6 @@ static int php_xbithack_handler(request_rec * r)
                zend_hash_apply((HashTable *) per_dir_conf, (apply_func_t) php_apache_alter_ini_entries TSRMLS_CC);
        }
        if(!AP(xbithack)) {
-               r->allowed |= (1 << METHODS) - 1;
                zend_try {
                        zend_ini_deactivate(TSRMLS_C);
                } zend_end_try();