OPSnet / Gazelle

The Unlicense
336 stars 97 forks source link

Fix issue with usetoken=0 trying to use a token #179

Closed ddechant closed 1 year ago

ddechant commented 2 years ago

This fixes an issue that occurs if the usetoken request parameter is defined, but is set to a false value.

Currently, when a request is made to download a torrent file, this condition will only check to see if the usetoken request parameter is set, it will not verify that it is true.

This fix will ensure that the parameter is a true value before attempting to use a token.

itismadness commented 1 year ago

Sorry for having this closed, we had to do a force push due an internal hiccup we had. I've created #192 to track merging this PR.