loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix 500 error of searching commits (#28576)

Regression of #28454 . Now the string is escaped HTML, so it doesn't
need `| Safe`.

Fix #28575

authored by

wxiaoguang and committed by
GitHub
04b235d0 b35d3fdd

+2 -2
+1 -1
templates/code/searchresults.tmpl
··· 31 31 <a href="{{$repo.Link}}/src/commit/{{$result.CommitID | PathEscape}}/{{$result.Filename | PathEscapeSegments}}#L{{.}}"><span>{{.}}</span></a> 32 32 {{end}} 33 33 </td> 34 - <td class="lines-code chroma"><code class="code-inner">{{.FormattedLines | Safe}}</code></td> 34 + <td class="lines-code chroma"><code class="code-inner">{{.FormattedLines}}</code></td> 35 35 </tr> 36 36 </tbody> 37 37 </table>
+1 -1
templates/repo/search.tmpl
··· 53 53 <a href="{{$.SourcePath}}/src/commit/{{PathEscape $result.CommitID}}/{{PathEscapeSegments $result.Filename}}#L{{.}}"><span>{{.}}</span></a> 54 54 {{end}} 55 55 </td> 56 - <td class="lines-code chroma"><code class="code-inner">{{.FormattedLines | Safe}}</code></td> 56 + <td class="lines-code chroma"><code class="code-inner">{{.FormattedLines}}</code></td> 57 57 </tr> 58 58 </tbody> 59 59 </table>