tony2001 Thu Dec 28 22:37:00 2006 UTC Modified files: (Branch: PHP_4_4) /php-src/sapi/cgi cgi_main.c Log: MFH http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.190.2.68.2.5&r2=1.190.2.68.2.6&diff_format=u Index: php-src/sapi/cgi/cgi_main.c diff -u php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.5 php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.6 --- php-src/sapi/cgi/cgi_main.c:1.190.2.68.2.5 Wed Feb 22 15:11:53 2006 +++ php-src/sapi/cgi/cgi_main.c Thu Dec 28 22:36:59 2006 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cgi_main.c,v 1.190.2.68.2.5 2006/02/22 15:11:53 dmitry Exp $ */ +/* $Id: cgi_main.c,v 1.190.2.68.2.6 2006/12/28 22:36:59 tony2001 Exp $ */ #include "php.h" #include "php_globals.h" @@ -811,7 +811,7 @@ int l = strlen(env_document_root); int path_translated_len = 0; char *path_translated = NULL; - if (env_document_root[l-1]=='/') { + if (l && env_document_root[l-1]=='/') { --l; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php