-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert recentTrackers->last_used to an array (#2783)
Previously, we were storing a string, and if a user created 20 torrents in a row, it would add 20 trailing carriage returns (\r) to the box. We already do the logic of stripping empty lines for other purposes, lets reuse that here. Add de-duplication of last used trackers (to match the list array). Also eliminate $announce_list, because it's never used, and `grep -rn announce_list * | grep global` indicates no other function is using it without it being passed.
- Loading branch information
1 parent
fc200ab
commit 1d9dfb5
Showing
2 changed files
with
18 additions
and
18 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