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 == "":
|
if filehistory == "":
|
||||||
filehistory = ["This file has no history (it may not be part of the git repository)."]
|
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>"
|
filehistory = "<pre>\n" + "</pre><pre>\n".join(filehistory) + "</pre>"
|
||||||
|
|
||||||
return filehistory
|
return filehistory
|
||||||
|
Reference in New Issue
Block a user