]> git.pld-linux.org Git - packages/php.git/commitdiff
- use SCRIPT_NAME instead of REQUEST_URI (won't leak passwords and such things in...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 26 Mar 2004 22:24:04 +0000 (22:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-mail.patch -> 1.9

php-mail.patch

index 1db4c2b28d287a5b47c0ac7554212dd2b7b0d786..4ba0422823106ae7d7b2840a3ac698eec2a7ff61 100644 (file)
@@ -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");
 +                      }
This page took 0.042096 seconds and 4 git commands to generate.