This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules
Roy Marples 89845f6728 Fix SHA1 hash linking (#2143)
This changes the regex to look for a hash from 7 to 40 characters,
to match the use of abbreviated hash lookups in both git and github.
The restriction of not being a pure number is also removed because
1234567 is now considered a valid abbreviated hash, as is deadbeef.

A note has been added to the top of the code to state that the
literal regex match is fine, but no extra validation is currently
performed so some false positives are expected.

A future change could ensure that the hash exists in the repository
before rendering it as a link, although this might incur a slight
performance penalty.

Reverts part of commit 4a46613 and fixes #2053.
2017-07-12 04:26:54 +02:00
..
auth Check for valid renamed usernames (#2077) 2017-07-01 22:48:29 +03:00
avatar
base lint 2017-06-29 12:11:34 -04:00
context Fix missing-return bug (#2109) 2017-07-04 09:29:57 +08:00
cron LDAP user synchronization (#1478) 2017-05-10 15:10:18 +02:00
highlight No highlighting for .txt files (#1922) 2017-06-09 19:39:16 -05:00
httplib Add internal routes for ssh hook comands (#1471) 2017-04-19 11:45:01 +08:00
indexer
lfs
log Remove unused mutex field (#1440) 2017-04-04 01:54:02 -07:00
mailer fix misspell (#1996) 2017-06-18 08:30:04 +08:00
markdown Fix SHA1 hash linking (#2143) 2017-07-12 04:26:54 +02:00
markup gofmt (#1710) 2017-05-12 16:09:53 +08:00
minwinsvc
notification
options
private Drop db operations from hook commands (#1514) 2017-05-04 13:42:02 +08:00
process
public
setting Absolute path for setting.CustomConf (#2085) 2017-07-01 11:10:04 +08:00
ssh
sync Fix status table race condition (#1835) 2017-05-31 16:57:17 +08:00
templates Sanitation fix from Gogs (#1461) 2017-04-13 10:52:24 +08:00
user
util
validation Better URL validation (#1507) 2017-04-19 11:02:20 +08:00