Closed
Description
Description
After the attached file README.md is included in a npm package and published to GITea, and then when package details page is opened in GITea site for this package, GITea crashes (see attached error message)
In the README.md if the following line is removed and published, the gitea app/service does not fail when viewing the package details in GITea.
- The pacakge name @qccat-ui has been renamed to @qccat/core-ui.
Gitea Version
1.18.5
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
GITea is running in windows.
Database
None
Activity
Zettat123 commentedon Feb 23, 2023
I think the reason of the panic is the
ctx.Ctx
isnil
gitea/modules/markup/html.go
Line 615 in 6c35454
ctx.Ctx
should be set when createmarkup.RenderContext
gitea/modules/templates/helper.go
Lines 177 to 180 in 6c35454
Fix nil context in RenderMarkdownToHtml (#23092)
Fix nil context in RenderMarkdownToHtml (go-gitea#23092)
Fix nil context in RenderMarkdownToHtml (#23092) (#23108)