From: Arkadiusz Miƛkiewicz Date: Fri, 26 Mar 2004 22:24:04 +0000 (+0000) Subject: - use SCRIPT_NAME instead of REQUEST_URI (won't leak passwords and such things in... X-Git-Tag: auto/ac/php-4_3_5-1~4 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=bfb8a2ed7f7b78fa7f065eb2d65bd0f71580b9c0;p=packages%2Fphp.git - use SCRIPT_NAME instead of REQUEST_URI (won't leak passwords and such things in emails Changed files: php-mail.patch -> 1.9 --- diff --git a/php-mail.patch b/php-mail.patch index 1db4c2b..4ba0422 100644 --- a/php-mail.patch +++ b/php-mail.patch @@ -36,7 +36,7 @@ + + if (PG(http_globals)[TRACK_VARS_SERVER]) { + zval **remote_addr, **server_name, **server_port, -+ **request_uri, **http_user_agent; ++ **script_name, **http_user_agent; + + if (zend_hash_find(PG(http_globals)[TRACK_VARS_SERVER]->value.ht, "REMOTE_ADDR", sizeof("REMOTE_ADDR"), (void **) &remote_addr)==SUCCESS) { + convert_to_string_ex(remote_addr); @@ -49,9 +49,9 @@ + convert_to_string_ex(server_port); + fprintf(sendmail, ":%s", Z_STRVAL_PP(server_port)); + } -+ if (zend_hash_find(PG(http_globals)[TRACK_VARS_SERVER]->value.ht, "REQUEST_URI", sizeof("REQUEST_URI"), (void **) &request_uri)==SUCCESS) { -+ convert_to_string_ex(request_uri); -+ fprintf(sendmail, "%s", Z_STRVAL_PP(request_uri)); ++ if (zend_hash_find(PG(http_globals)[TRACK_VARS_SERVER]->value.ht, "SCRIPT_NAME", sizeof("SCRIPT_NAME"), (void **) &scrip_name)==SUCCESS) { ++ convert_to_string_ex(script_name); ++ fprintf(sendmail, "%s", Z_STRVAL_PP(script_name)); + } + fprintf(sendmail, "\n"); + }