Changeset 504


Ignore:
Timestamp:
Mar 9, 2015 4:12:19 AM (9 years ago)
Author:
anonymous
Message:

Fixed phpsess printing bug.

File:
1 edited

Legend:

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

    r502 r504  
    10181018        }
    10191019
    1020         // Include the SID if cookies are disabled.
    1021         if (!isset($_COOKIE[session_name()]) && !ini_get('session.use_trans_sid')) {
     1020        // Include the SID if:
     1021        // * cookies are disabled
     1022        // * the system isn't automatically adding trans_sid
     1023        // * the session is enabled
     1024        // * and we're configured to use trans_sid
     1025        if (!isset($_COOKIE[session_name()])
     1026        && !ini_get('session.use_trans_sid')
     1027        && $this->getParam('enable_session')
     1028        && $this->getParam('session_use_trans_sid')
     1029        ) {
    10221030            printf('<input type="hidden" name="%s" value="%s" />', session_name(), session_id());
    10231031        }
Note: See TracChangeset for help on using the changeset viewer.