-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set next_page and prev_page without leaking any info
c2d5d72 removed total and pages if a user doesn't have sufficient rights for security, and this makes paging difficult because the caller doesn't know if there are more results. Refactor next_page to set it based on looking ahead, but still be secure and not reveal any extra information about counts. If next_page exists, a caller now knows they should call for more records. Fixes: I##37712
- Loading branch information
1 parent
96ca7dd
commit 6272af8
Showing
2 changed files
with
107 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters