Dotclear

Changeset 3646:1c6a535772c8


Ignore:
Timestamp:
01/08/18 11:11:34 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with query part only in SimpleMenu? URLs, should fix #2006

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r3644 r3646  
    1 Dotclear 2.13 - yyyy-mm-dd 
     1Dotclear 2.13 - 2018-01-13 
    22=========================================================== 
    33* 🐘 PHP 5.5+ is required 
     
    1515* Fix: Error messages markup and styling 
    1616* Fix: Set caret at the end of the inserted thing (img, url, blockquote, …) in Legacy editor if current selection is empty 
     17* Fix: Cope with query part only in SimpleMenu URLs 
    1718* 🐛 → Various bugs and typos fixed 
    1819* 🌼 → Some locales and cosmetic adjustments 
  • plugins/simpleMenu/_public.php

    r3600 r3646  
    101101                    $href = html::escapeHTML($href); 
    102102 
     103                    # Cope with request only URL (ie ?query_part) 
     104                    $href_part = ''; 
     105                    if ($href != '' && substr($href,0,1) == '?') { 
     106                         $href_part = substr($href,1); 
     107                    } 
     108 
    103109                    $targetBlank = ((isset($m['targetBlank'])) && ($m['targetBlank']))? true:false; 
    104110 
     
    108114                         ($abs_url == $href) || 
    109115                         ($_SERVER['URL_REQUEST_PART'] == $href) || 
     116                         (($href_part != '') && ($_SERVER['URL_REQUEST_PART'] == $href_part)) || 
    110117                         (($_SERVER['URL_REQUEST_PART'] == '') && (($href == $home_url) || ($href == $home_directory)))) { 
    111118                         $active = true; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map