Skip to content

Commit

Permalink
Fix: #0007496: Cannot sort on custom field containing non-ASCII chara…
Browse files Browse the repository at this point in the history
…cters
  • Loading branch information
siebrand committed Jun 17, 2009
1 parent bae8693 commit acc4dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/print_api.php
Expand Up @@ -1252,7 +1252,7 @@ function print_view_bug_sort_link( $p_string, $p_sort_field, $p_sort, $p_dir, $p
$t_dir = 'ASC';
}

echo '<a href="view_all_set.php?sort=' . $p_sort_field . '&amp;dir=' . $p_dir . '&amp;type=2&amp;print=1">' . $p_string . '</a>';
echo '<a href="view_all_set.php?sort=' . rawurlencode( $p_sort_field ) . '&amp;dir=' . $p_dir . '&amp;type=2&amp;print=1">' . $p_string . '</a>';
}
else if( $p_columns_target == COLUMNS_TARGET_VIEW_PAGE ) {
if( $p_sort_field == $p_sort ) {
Expand All @@ -1268,7 +1268,7 @@ function print_view_bug_sort_link( $p_string, $p_sort_field, $p_sort, $p_dir, $p
$t_dir = 'ASC';
}

echo '<a href="view_all_set.php?sort=' . $p_sort_field . '&amp;dir=' . $p_dir . '&amp;type=2">' . $p_string . '</a>';
echo '<a href="view_all_set.php?sort=' . rawurlencode( $p_sort_field ) . '&amp;dir=' . $p_dir . '&amp;type=2">' . $p_string . '</a>';
} else {
echo $p_string;
}
Expand Down

0 comments on commit acc4dca

Please sign in to comment.