Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion includes/Specials/BrowseData/GetApplicableFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,10 @@ private function getUnappliedFilterLine( Filter $f ): string {

// For dates additionally add two datepicker inputs (Start/End) to select a custom interval.
if ( $f->propertyType() == 'date' && $possibleValues->count() != 0 ) {
$results_line .= '<br>' . $this->getDateRangeInput( $filter_name, $possibleValues->dateRange() );
# $filter_name is alread urlencoded, and getDateRangeInput applies a second urlencode()
# so this breaks the URL sent to the browser. Use a raw filter name instead.
$raw_filter_name = str_replace( ' ', '_', $f->name() );
$results_line .= '<br>' . $this->getDateRangeInput( $raw_filter_name, $possibleValues->dateRange() );
}

$text = $this->getFilterLine( $f->name(), false, $normal_filter, $results_line, $f );
Expand Down
Loading