]> source.dussan.org Git - gitea.git/commit
Prevent start panic due to missing DotEscape function
authorAndrew Thornton <art27@cantab.net>
Wed, 23 Mar 2022 16:08:27 +0000 (16:08 +0000)
committerAndrew Thornton <art27@cantab.net>
Wed, 23 Mar 2022 16:09:57 +0000 (16:09 +0000)
commit9c7d8b30968b2d1f1b699ae01b8cbc114457f8f5
tree1bc09ec532ddabaa6f3569397cbd52b27a4538f4
parent93feb1a666a4dd8d5999a3f3a1a6f35e34b29b67
Prevent start panic due to missing DotEscape function

Unfortunately #19169 causing a panic at startup in prod mode. This was hidden by dev
mode because the templates are compiled dynamically there. The issue is that DotEscape
is not in the original FuncMap at the time of compilation which causes a panic.

Ref #19169

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/templates/helper.go