Changeset 524


Ignore:
Timestamp:
May 24, 2015 5:56:37 PM (9 years ago)
Author:
anonymous
Message:
 
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/version.txt

    r521 r524  
    1 2.1.10
     12.2.0dev
  • trunk/lib/App.inc.php

    r523 r524  
    10031003            }
    10041004        }
     1005
     1006        // Pop off any named anchors to push them back on after appending additional query args.
     1007        $parts = explode('#', $url, 2);
     1008        $url = $parts[0];
     1009        $anchor = isset($parts[1]) ? $parts[1] : '';
     1010
     1011        // $anchor =
    10051012
    10061013        // Include the necessary SID if the following is true:
     
    10321039            && !preg_match('/[?&]' . preg_quote(session_name()) . '=/', $url)
    10331040        ) {
    1034             $url .= $q . $delim . session_name() . '=' . session_id();
     1041            $url = sprintf('%s%s%s%s=%s%s', $url, $q, $delim, session_name(), session_id(), ('' == $anchor ? '' : "#$anchor"));
    10351042        } else {
    1036             $url .= $q;
     1043            $url = sprintf('%s%s%s', $url, $q, ('' == $anchor ? '' : "#$anchor"));
    10371044        }
    10381045
Note: See TracChangeset for help on using the changeset viewer.