Project

General

Profile

Revision 01f36513

Added by Assos Assos about 6 years ago

Weekly update of contrib modules

View differences:

drupal7/includes/common.inc
611 611
  }
612 612
  // The 'q' parameter contains the path of the current page if clean URLs are
613 613
  // disabled. It overrides the 'path' of the URL when present, even if clean
614
  // URLs are enabled, due to how Apache rewriting rules work.
615
  if (isset($options['query']['q'])) {
614
  // URLs are enabled, due to how Apache rewriting rules work. The path
615
  // parameter must be a string.
616
  if (isset($options['query']['q']) && is_string($options['query']['q'])) {
616 617
    $options['path'] = $options['query']['q'];
617 618
    unset($options['query']['q']);
618 619
  }

Also available in: Unified diff