0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-23 14:26:15 -05:00
forgejo/services
wxiaoguang d26b7902ec Refactor CSRF protector (#32057)
Remove unused CSRF options, decouple "new csrf protector" and "prepare"
logic, do not redirect to home page if CSRF validation falis (it
shouldn't happen in daily usage, if it happens, redirecting to home
doesn't help either but just makes the problem more complex for "fetch")

(cherry picked from commit 1fede04b83288d8a91304a83b7601699bb5cba04)

Conflicts:
	options/locale/locale_en-US.ini
	tests/integration/repo_branch_test.go
  trivial context conflicts
(cherry picked from commit 1ae3b127fc)
2024-09-27 08:13:29 +00:00
..
actions Fix actions notify bug (#31866) 2024-08-25 10:41:24 +02:00
agit
asymkey
attachment
auth Merge pull request '[CHORE] Move to new sessioner library' (#5090) from gusted/forgejo-sessioner-fork into forgejo 2024-08-26 07:31:56 +00:00
automerge Fix agit automerge (#31207) 2024-08-25 10:47:37 +02:00
context Refactor CSRF protector (#32057) 2024-09-27 08:13:29 +00:00
contexttest [TESTS] Fix usage of LoadRepoCommit 2024-08-26 08:03:48 +02:00
convert Fix /repos/{owner}/{repo}/pulls/{index}/files endpoint not populating previous_filename (#32017) 2024-09-14 17:53:55 +02:00
cron
doctor fix: correct doctor commands and rename to forgejo 2024-08-27 02:40:55 +02:00
externalaccount
f3
federation
feed
forgejo
forms [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
gitdiff feat: Improve diff being generated 2024-08-26 13:58:17 +02:00
indexer
issue
lfs
mailer chore: remove extra go-sqlite3 imports 2024-09-06 09:36:08 +00:00
markup
migrations Support allowed hosts for migrations to work with proxy (#32025) 2024-09-14 17:52:54 +02:00
mirror [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
notify
org
packages Do not escape relative path in RPM primary index (#32038) 2024-09-27 08:13:29 +00:00
pull Handle "close" actionable references for manual merges (#31879) 2024-09-01 08:07:27 +02:00
release Handle invalid target when creating releases using API (#31841) 2024-09-14 18:45:18 +02:00
remote
repository Fix: database not updated when using git push --tags --force (#5319) 2024-09-22 07:35:25 +00:00
secrets
task
uinotification
user
webhook Support allowed hosts for migrations to work with proxy (#32025) 2024-09-14 17:52:54 +02:00
wiki