diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2008-02-28 00:51:56 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2008-02-28 00:51:56 +0000 |
commit | 183267dc2916d1bcd7673fc8285f3fc1fc414462 (patch) | |
tree | 1894d4c381bbefd19e7d520d2a6424a6f7673c81 /sapi | |
parent | 825c3f5ac28cb5c4aab5ac6fee7dff2fbbb83383 (diff) | |
download | php-git-183267dc2916d1bcd7673fc8285f3fc1fc414462.tar.gz |
MFB: Fixed security issue detailed in CVE-2008-0599
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 257e6fcbb4..86efb43b2a 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1101,7 +1101,7 @@ static void init_request_info(TSRMLS_D) ) { /* PATH_TRANSLATED = PATH_TRANSLATED - SCRIPT_NAME + PATH_INFO */ int ptlen = strlen(pt) - strlen(env_script_name); - int path_translated_len = ptlen + env_path_info ? strlen(env_path_info) : 0; + int path_translated_len = ptlen + (env_path_info ? strlen(env_path_info) : 0); char *path_translated = NULL; path_translated = (char *) emalloc(path_translated_len + 1); |