mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-28 23:54:51 +09:00
Don't check CSRF token in InboxR, POSTs there freely come from other servers
This commit is contained in:
parent
6e721797e9
commit
c26289cf42
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@ instance Yesod App where
|
||||||
handler
|
handler
|
||||||
(getCurrentRoute >>= \ mr -> case mr of
|
(getCurrentRoute >>= \ mr -> case mr of
|
||||||
Nothing -> return False
|
Nothing -> return False
|
||||||
|
Just InboxR -> return False
|
||||||
Just (GitUploadRequestR _ _) -> return False
|
Just (GitUploadRequestR _ _) -> return False
|
||||||
Just r -> isWriteRequest r
|
Just r -> isWriteRequest r
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue