mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
It is necessary to do this check in V*OrAdminSecret as we cannot (and should not) require a modhash when the secret token is being used because this would break API compatibility and isn't necessary. This fixes two XSRF vulnerabilities reported by Jordan Milne (/u/largenocream).