summaryrefslogtreecommitdiffstats
path: root/modules/util/util_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Re-attempt to delete temporary upload if the file is locked by another ↵zeripath2020-08-111-35/+0
| | | | | | | | | | | process (#12447) Replace all calls to os.Remove/os.RemoveAll by retrying util.Remove/util.RemoveAll and remove circular dependencies from util. Fix #12339 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
* Convert EOL to UNIX-style to render MD properly (#8925)guillep2k2019-11-131-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Convert EOL to UNIX-style to render MD properly * Update modules/markup/markdown/markdown.go Co-Authored-By: zeripath <art27@cantab.net> * Fix lint optimization * Check for empty content before conversion * Update modules/util/util.go Co-Authored-By: zeripath <art27@cantab.net> * Improved checks and tests * Add paragraph render test * Improve speed even more, improve tests * Small improvement by @gary-kim * Fix test for DOS * More improvements * Restart CI
* Handle insecure and ports in go get (#7041)zeripath2019-05-271-1/+1
| | | | | | * Handle insecure and ports in go get * Fix IsExternalURL for non-standard ports
* Disallow empty titles (#5785)Lanre Adelowo2019-01-211-0/+17
| | | | | | | | | | | | * add util method and tests * make sure the title of an issue cannot be empty * wiki title cannot be empty * pull request title cannot be empty * update to make use of the new util methof
* Fix open redirect vulnerability on login screen (#4312)Jonas Franz2018-06-261-0/+35
| | | | | | | | | | | | | | * Fix open redirect vulnerability on login screen Signed-off-by: Jonas Franz <info@jonasfranz.software> * Reorder imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace www. from Domain too Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix #4081 Check for leading / in base before removing it (#4082)Antoine GIRARD2018-05-301-0/+6
|
* Fix relative markdown links with anchors (#4058)Jonas Franz2018-05-281-0/+2
| | | | | | | | | | | * Replace '%28' with '#' Add test case Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use ResolveReference instead of strings.Replace Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Populate URL field of API commits (#3546)Ethan Koenig2018-02-201-0/+36
* Populate URL field of API commits * fix orgmode_test