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-07-25 19:05:51 +01:00
2019-04-15 20:32:15 -04:00
2019-06-12 15:41:28 -04:00
2018-10-27 22:45:24 +08:00
2018-05-09 19:29:04 +03:00
2019-07-06 15:24:50 -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
2019-06-12 15:41:28 -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
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2019-05-04 11:45:34 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00
2018-10-20 18:19:21 -04:00
2019-06-12 15:41:28 -04:00
2019-06-12 15:41:28 -04:00