mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-25 00:29:51 +00:00
Escape html in commit log
This commit is contained in:
parent
c2b21e340e
commit
0d2889252c
@ -77,6 +77,8 @@ def git_filehistory(working_dir, filename):
|
||||
if filehistory == "":
|
||||
filehistory = ["This file has no history (it may not be part of the git repository)."]
|
||||
|
||||
filehistory = [ x.replace("<", "<").replace(">", ">") for x in filehistory]
|
||||
|
||||
filehistory = "<pre>\n" + "</pre><pre>\n".join(filehistory) + "</pre>"
|
||||
|
||||
return filehistory
|
||||
|
Loading…
Reference in New Issue
Block a user