summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-02-28 00:51:56 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-02-28 00:51:56 +0000
commit183267dc2916d1bcd7673fc8285f3fc1fc414462 (patch)
tree1894d4c381bbefd19e7d520d2a6424a6f7673c81 /sapi
parent825c3f5ac28cb5c4aab5ac6fee7dff2fbbb83383 (diff)
downloadphp-git-183267dc2916d1bcd7673fc8285f3fc1fc414462.tar.gz
MFB: Fixed security issue detailed in CVE-2008-0599
Diffstat (limited to 'sapi')
-rw-r--r--sapi/cgi/cgi_main.c2
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);