1
1
mirror of https://github.com/go-gitea/gitea synced 2025-02-28 07:44:19 +00:00
Gary Kim e887f922ca
Check commit message hashes before making links
Previously, when formatting commit messages, anything
that looked like SHA1 hashes was turned into a link
using regex. This meant that certain phrases or numbers
such as `777777` or `deadbeef` could be recognized as a commit
even if the repository has no commit with those hashes.

This change will make it so that anything that looks
like a SHA1 hash using regex will then also be checked
to ensure that there is a commit in the repository
with that hash before making a link.

Signed-off-by: Gary Kim <gary@garykim.dev>
2019-08-02 15:36:47 +08:00
..
2019-06-12 17:07:24 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-04 17:01:47 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2018-11-04 22:20:00 -05:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2017-11-13 22:51:45 +08:00
2018-03-16 22:04:33 +08:00
2019-03-08 11:42:50 -05:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00