1
0
Fork 0
forgejo/models
mrsdizzie dce22efbee Fix SSH2 conditonal in key parsing code (#8806)
Avoid out of bounds error by using strings.HasPrefix to check for
starting SSH2 text rather than assuming user input has at least 31
characters.

Add tests for bad input as well.

Fixes #8800
2019-11-03 19:08:18 +08:00
..
fixtures Update heatmap fixtures to restore tests (#8615) 2019-10-21 21:19:53 +01:00
migrations Fix extra columns from label table (#8633) 2019-10-23 14:48:32 +03:00
access.go
access_test.go
action.go Move sync mirror actions to mirror service package (#8518) 2019-10-16 10:56:59 +01:00
action_list.go
action_test.go
admin.go
admin_test.go
attachment.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
attachment_test.go
branches.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
branches_test.go
commit_status.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
commit_status_test.go
consistency.go
context.go
convert.go
error.go Prevent upload (overwrite) of lfs locked file (#8769) 2019-11-02 15:37:05 +08:00
error_oauth2.go
external_login_user.go Allow more than 255 characters for tokens in external_login_user table (#8554) 2019-10-18 09:58:36 +03:00
gpg_key.go Ensure default gpg settings not nil and found commits have reference to repo (#8604) 2019-10-20 23:26:36 +01:00
gpg_key_test.go
graph.go
graph_test.go
helper.go
helper_directory.go
helper_environment.go
issue.go Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
issue_assignees.go Move more issue assignee code from models to issue service (#8690) 2019-10-28 10:11:50 +08:00
issue_assignees_test.go Move more issue assignee code from models to issue service (#8690) 2019-10-28 10:11:50 +08:00
issue_comment.go mark review comment as invalidated when file is deleted (#8751) 2019-10-31 13:59:36 -04:00
issue_comment_list.go
issue_comment_test.go
issue_dependency.go
issue_dependency_test.go
issue_label.go Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
issue_label_test.go
issue_list.go
issue_list_test.go
issue_lock.go
issue_milestone.go [Fix] milestone close timestamp (#8728) 2019-10-29 10:35:50 +08:00
issue_milestone_test.go
issue_reaction.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
issue_reaction_test.go
issue_stopwatch.go
issue_stopwatch_test.go
issue_test.go Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
issue_tracked_time.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
issue_tracked_time_test.go
issue_user.go Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
issue_user_test.go
issue_watch.go Add API for Issue set Subscription (#8729) 2019-11-02 23:27:49 +08:00
issue_watch_test.go
issue_xref.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
lfs.go Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
lfs_lock.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
log.go
login_source.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
main_test.go
migrate.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
models.go Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528) 2019-10-21 22:20:47 +01:00
models_test.go
notification.go
notification_test.go
oauth2.go
oauth2_application.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
oauth2_application_test.go
org.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
org_team.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
org_team_test.go
org_test.go
pull.go Move pull list code to a seperate file (#8748) 2019-10-30 20:33:10 +00:00
pull_list.go Allow cross-repository dependencies on issues (#7901) 2019-10-31 13:06:10 +08:00
pull_test.go Fix bug on pull requests when transfer head repository (#8564) 2019-10-18 19:13:31 +08:00
release.go Allow externalID to be UUID (#8551) 2019-10-17 10:06:28 +08:00
repo.go Respect LFS File Lock on UI (#8719) 2019-10-29 23:32:21 +02:00
repo_activity.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
repo_branch.go
repo_collaboration.go
repo_collaboration_test.go
repo_indexer.go Restore Graceful Restarting & Socket Activation (#7274) 2019-10-15 14:39:51 +01:00
repo_issue.go
repo_list.go Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
repo_list_test.go
repo_mirror.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
repo_permission.go Move more issue assignee code from models to issue service (#8690) 2019-10-28 10:11:50 +08:00
repo_permission_test.go
repo_redirect.go
repo_redirect_test.go
repo_sign.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
repo_tag.go
repo_test.go
repo_unit.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
repo_watch.go
repo_watch_test.go
review.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
review_test.go
ssh_key.go Fix SSH2 conditonal in key parsing code (#8806) 2019-11-03 19:08:18 +08:00
ssh_key_test.go Fix SSH2 conditonal in key parsing code (#8806) 2019-11-03 19:08:18 +08:00
star.go
star_test.go
task.go
test_fixtures.go
token.go
token_test.go
topic.go
topic_test.go
twofactor.go
u2f.go
u2f_test.go
unit.go
unit_tests.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
update.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
update_test.go
upload.go
user.go Mail assignee when issue/pull request is assigned (#8546) 2019-10-25 22:46:37 +08:00
user_follow.go
user_follow_test.go
user_heatmap.go
user_heatmap_test.go Update heatmap fixtures to restore tests (#8615) 2019-10-21 21:19:53 +01:00
user_mail.go
user_mail_test.go
user_openid.go
user_openid_test.go
user_test.go
userlist.go Add API for Issue set Subscription (#8729) 2019-11-02 23:27:49 +08:00
userlist_test.go
webhook.go Move webhook to a standalone package under modules (#8747) 2019-11-01 22:51:22 +00:00
webhook_dingtalk.go Improve webhooks (#8583) 2019-10-18 23:42:04 +01:00
webhook_discord.go Improve webhooks (#8583) 2019-10-18 23:42:04 +01:00
webhook_msteams.go Improve webhooks (#8583) 2019-10-18 23:42:04 +01:00
webhook_slack.go
webhook_telegram.go
webhook_test.go Move webhook to a standalone package under modules (#8747) 2019-11-01 22:51:22 +00:00
wiki.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
wiki_test.go