Changeset 293 for trunk/lib


Ignore:
Timestamp:
Dec 11, 2007 10:53:46 PM (16 years ago)
Author:
quinn
Message:

Minor updates.

Location:
trunk/lib
Files:
2 edited

Legend:

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

    r282 r293  
    6565        'session_name' => '_session',
    6666        'session_use_cookies' => true,
     67       
     68        // Pass the session-id through URLs if cookies are not enabled?
     69        // Disable this to prevent session ID theft.
    6770        'session_use_trans_sid' => false,
    6871
  • trunk/lib/Email.inc.php

    r282 r293  
    303303        // Check for mail header injection attacks.
    304304        $full_mail_content = join($this->getParam('crlf'), array($final_to, $this->_params['subject'], $final_body));
    305         if (preg_match("/(^|[\n\r])(Content-Type|MIME-Version|Content-Transfer-Encoding|Bcc|Cc):/i", $full_mail_content)) {
     305        if (preg_match("/(^|[\n\r])(Content-Type|MIME-Version|Content-Transfer-Encoding|Bcc|Cc)\s*:/i", $full_mail_content)) {
    306306            $app->logMsg(sprintf('Mail header injection attack in content: %s', $full_mail_content), LOG_WARNING, __FILE__, __LINE__);
    307307            sleep(3);
Note: See TracChangeset for help on using the changeset viewer.