diff --git a/www/kojiweb/includes/footer.chtml b/www/kojiweb/includes/footer.chtml index 3b9399d4..d60f5a09 100644 --- a/www/kojiweb/includes/footer.chtml +++ b/www/kojiweb/includes/footer.chtml @@ -9,7 +9,7 @@ #set $localfooterpath=$util.themePath("extra-footer.html", local=True) #if os.path.exists($localfooterpath) #if $literalFooter -#set $localfooter="".join(open($localfooterpath, 'rt', encoding='utf-8').readlines()) +#set $localfooter=$util.SafeValue("".join(open($localfooterpath, 'rt', encoding='utf-8').readlines())) $localfooter #else #include $localfooterpath @@ -20,7 +20,7 @@ $localfooter #set $localbottompath=$util.themePath("extra-bottom.html", local=True) #if os.path.exists($localbottompath) -#set $localbottom="".join(open($localbottompath, 'rt', encoding='utf-8').readlines()) +#set $localbottom=$util.SafeValue("".join(open($localbottompath, 'rt', encoding='utf-8').readlines())) $localbottom #end if diff --git a/www/kojiweb/includes/header.chtml b/www/kojiweb/includes/header.chtml index 3a5c7f36..837e8586 100644 --- a/www/kojiweb/includes/header.chtml +++ b/www/kojiweb/includes/header.chtml @@ -29,7 +29,7 @@ #set $localnavpath=$util.themePath("extra-nav.html", local=True) #if os.path.exists($localnavpath) -#set $localnav="".join(open($localnavpath, 'rt', encoding='utf-8').readlines()) +#set $localnav=$util.SafeValue("".join(open($localnavpath, 'rt', encoding='utf-8').readlines())) $localnav #end if