diff options
author | Antony Dovgal <tony2001@php.net> | 2006-12-28 22:36:59 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-12-28 22:36:59 +0000 |
commit | 7637f98be2f0f15f67afc707e9dc04a1dd0e2539 (patch) | |
tree | 29937d3e2dcde7c446a1725d984b759f4eb3110e | |
parent | 2f37c4ddb0412f770bb15e8eb78075741664449d (diff) | |
download | php-git-7637f98be2f0f15f67afc707e9dc04a1dd0e2539.tar.gz |
MFH
-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 248b9ef37d..4ba48bc0bf 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -811,7 +811,7 @@ static void init_request_info(TSRMLS_D) 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; } |