diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-12-28 22:36:53 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-12-28 22:36:53 +0000 |
| commit | 2820e6c1faf174af4a432b8ca66bd82e3e2263c1 (patch) | |
| tree | 1a89d9967b4c95a625efec5d18c05577568aa661 /sapi | |
| parent | 7b281be1ee8cde725a95b3413c5cf55544834ce9 (diff) | |
| download | php-git-2820e6c1faf174af4a432b8ca66bd82e3e2263c1.tar.gz | |
MFH
Diffstat (limited to 'sapi')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
