diff options
author | Jesús <heckyel@hyperbola.info> | 2021-11-02 15:17:34 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-11-02 15:17:34 -0500 |
commit | 6535be64b9301bbc964cb41b8452d1500092619b (patch) | |
tree | 4630ccba8b1836649ee974e6126f429704b51df2 /gitolite-cgit/syntax-highlighting.py | |
parent | d05ebe3b648839f6271a14a4c21e1edf0a96d735 (diff) | |
download | gitolite-cgit-docker-6535be64b9301bbc964cb41b8452d1500092619b.tar.lz gitolite-cgit-docker-6535be64b9301bbc964cb41b8452d1500092619b.tar.xz gitolite-cgit-docker-6535be64b9301bbc964cb41b8452d1500092619b.zip |
syntax-highlighting.py: add nonce-source to CSP support
Diffstat (limited to 'gitolite-cgit/syntax-highlighting.py')
-rwxr-xr-x | gitolite-cgit/syntax-highlighting.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitolite-cgit/syntax-highlighting.py b/gitolite-cgit/syntax-highlighting.py index 16f83a3..16e206d 100755 --- a/gitolite-cgit/syntax-highlighting.py +++ b/gitolite-cgit/syntax-highlighting.py @@ -49,7 +49,7 @@ except TypeError: # highlight! :-) # printout pygments' css definitions as well -sys.stdout.write('<style>') +sys.stdout.write('<style nonce="8909ab9">') sys.stdout.write(formatter.get_style_defs('.highlight')) sys.stdout.write('</style>') sys.stdout.write(highlight(data, lexer, formatter, outfile=None)) |