source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* cvsweb: fix typo in the Content-Security-Policy "image-src", and no need
@ 2019-11-08  8:51 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-11-08  8:51 UTC (permalink / raw)
  To: source

Log Message:
-----------
fix typo in the Content-Security-Policy "image-src",
and no need to allow external style sheets at this time

Tags:
----
FreeBSD-cvsweb-2_0-branch

Modified Files:
--------------
    cvsweb:
        cvsweb.cgi

Revision Data
-------------
Index: cvsweb.cgi
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.cgi,v
retrieving revision 3.119.2.23
retrieving revision 3.119.2.24
diff -Lcvsweb.cgi -Lcvsweb.cgi -u -p -r3.119.2.23 -r3.119.2.24
--- cvsweb.cgi
+++ cvsweb.cgi
@@ -3559,13 +3559,13 @@ sub http_header(;$) {
 	if ($is_mod_perl) {
 		Apache->request->content_type($content_type);
 		Apache->request->header_out("Content-Security-Policy" =>
-		    "default-src 'none'; image-src 'self'; " .
-		    "style-src 'self' 'unsafe-inline'");
+		    "default-src 'none'; img-src 'self'; " .
+		    "style-src 'unsafe-inline'");
 	} else {
 		print "Content-Type: $content_type\r\n";
 		print "Content-Security-Policy: ",
-		    "default-src 'none'; image-src 'self'; ",
-		    "style-src 'self' 'unsafe-inline';\r\n";
+		    "default-src 'none'; img-src 'self'; ",
+		    "style-src 'unsafe-inline';\r\n";
 	}
 
 	if ($allow_compress && $maycompress) {
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-08  8:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08  8:51 cvsweb: fix typo in the Content-Security-Policy "image-src", and no need schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).