Skip to content

Commit

Permalink
MFH
Browse files Browse the repository at this point in the history
  • Loading branch information
tony2001 committed Dec 28, 2006
1 parent 2f37c4d commit 7637f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sapi/cgi/cgi_main.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7637f98

Please sign in to comment.