From: Antony Dovgal Date: Thu, 28 Dec 2006 22:36:53 +0000 (+0000) Subject: MFH X-Git-Tag: php-5.2.1RC2~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2820e6c1faf174af4a432b8ca66bd82e3e2263c1;p=php MFH --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 2851afcae0..bf24ef0090 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -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; }