Skip to content

Commit

Permalink
Preserve search parameter when deleting entry
Browse files Browse the repository at this point in the history
Closes #437.
  • Loading branch information
nikic committed Dec 9, 2023
1 parent 0797ccc commit 7cfb405
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,10 @@ function block_sort($array1, $array2)
echo '<td class="td-last center">', date(DATE_FORMAT,$entry['deletion_time']), '</td>';
} else if ($MYREQUEST['OB'] == OB_USER_CACHE) {
echo '<td class="td-last center">';
echo '[<a href="', $MY_SELF, '&OB=', $MYREQUEST['OB'], '&DU=', urlencode($entry[$fieldkey]), '">Delete Now</a>]';
echo '[<a href="', $MY_SELF, '&OB=', $MYREQUEST['OB'],
'&DU=', urlencode($entry[$fieldkey]),
isset($MYREQUEST['SEARCH']) ? '&SEARCH=' . htmlspecialchars(urlencode($MYREQUEST['SEARCH'])) : '',
'">Delete Now</a>]';
echo '</td>';
} else {
echo '<td class="td-last center"> &nbsp; </td>';
Expand Down

0 comments on commit 7cfb405

Please sign in to comment.