source@mandoc.bsd.lv
 help / color / 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, back to index

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

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-source

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git