Ignore:
Timestamp:
Mar 6, 2019 9:18:39 PM (5 years ago)
Author:
anonymous
Message:

Strip unsafe characters from HTTP_HOST

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Email.inc.php

    r668 r670  
    363363
    364364        // Process headers.
    365         $final_headers = array();
     365        $final_headers_arr = array();
     366        $final_headers = '';
    366367        foreach ($headers as $key => $val) {
    367368            // Validate key and values.
     
    385386                continue;
    386387            }
    387             $final_headers[] = sprintf('%s: %s', $key, $val);
    388         }
    389         $final_headers = join($this->getParam('crlf'), $final_headers);
     388            $final_headers_arr[] = sprintf('%s: %s', $key, $val);
     389        }
     390        $final_headers = join($this->getParam('crlf'), $final_headers_arr);
    390391
    391392        // This is the address where delivery problems are sent to. We must strip off everything except the local@domain part.
Note: See TracChangeset for help on using the changeset viewer.