cvs: php-src(PHP_5_0) /sapi/apache2handler php_functions.c

From: Date: Sun, 01 Jan 2006 20:13:44 +0000
Subject: cvs: php-src(PHP_5_0) /sapi/apache2handler php_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36357@lists.php.net to get a copy of this message
iliaa Sun Jan 1 20:13:44 2006 UTC Modified files: (Branch: PHP_5_0) /php-src/sapi/apache2handler php_functions.c Log: MFH: Added safety checks http://cvs.php.net/viewcvs.cgi/php-src/sapi/apache2handler/php_functions.c?r1=1.13.2.2&r2=1.13.2.3&diff_format=u Index: php-src/sapi/apache2handler/php_functions.c diff -u php-src/sapi/apache2handler/php_functions.c:1.13.2.2 php-src/sapi/apache2handler/php_functions.c:1.13.2.3 --- php-src/sapi/apache2handler/php_functions.c:1.13.2.2 Mon Jan 24 11:46:59 2005 +++ php-src/sapi/apache2handler/php_functions.c Sun Jan 1 20:13:44 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_functions.c,v 1.13.2.2 2005/01/24 11:46:59 jorton Exp $ */ +/* $Id: php_functions.c,v 1.13.2.3 2006/01/01 20:13:44 iliaa Exp $ */ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS @@ -58,13 +58,11 @@ static request_rec *php_apache_lookup_uri(char *filename TSRMLS_DC) { - php_struct *ctx; + php_struct *ctx = SG(server_context); - if (!filename) { + if (!filename || !ctx || !ctx->r) { return NULL; } - - ctx = SG(server_context); return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters); }

« previous php.cvs (#36357) next »