]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Thu, 28 Dec 2006 22:36:53 +0000 (22:36 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 28 Dec 2006 22:36:53 +0000 (22:36 +0000)
sapi/cgi/cgi_main.c

index 2851afcae0d5dbee29a006cf656f11a0585bbab2..bf24ef0090220df4b829f9b11aaaab09619aa5a0 100644 (file)
@@ -849,7 +849,7 @@ static void init_request_info(TSRMLS_D)
                                                        int path_translated_len = 0;
                                                        char *path_translated = NULL;
                                                        
-                                                       if (env_document_root[l - 1] == '/') {
+                                                       if (l && env_document_root[l - 1] == '/') {
                                                                --l;
                                                        }