Ticket #13610: sorting.patch

File sorting.patch, 476 bytes (added by Nigel Jewell, 4 months ago)

Tested patch that uses REQUEST_URI rather than PATH_INFO.

  • includes/sorting.php

    diff --git a/includes/sorting.php b/includes/sorting.php
    index e307525b..8c4660e7 100644
    a b  
    1616 **/
    1717    function get_sort_link($field, $string) {
    1818    // Get the URL
    19         $url = substr($_SERVER['PATH_INFO'], 1);
     19        $url = substr(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), 1);
    2020        if (empty($url))
    2121            $url = str_replace('mythweb.php/', '', $_SERVER['PHP_SELF']);
    2222        else