Differences From Artifact [502a0f9036]:
- File src/doc.c — part of check-in [45427ae1c9] at 2020-02-12 16:35:45 on branch trunk — Change the special $SELF substitution used by Markdown and HTML embedded documentation into $CURRENT. See the [https://www.fossil-scm.org/forum/forumpost/69cf42b0c9|forum discussion] for details. (user: drh size: 44882)
To Artifact [e76b1f9061]:
- File src/doc.c — part of check-in [14c81d9d2b] at 2020-02-26 14:28:31 on branch trunk — Put the Content-Security-Policy in the HTTP reply header in addition to the HTML header. That way, the CSP is enforced even for raw HTML pages or if the skin provides an HTML header that omits the CSP. Add a new "default-csp" setting included with the skin that allows an administrator to change the CSP to allow for CDNs and such. (user: drh size: 44913)
| ︙ | ︙ | |||
794 795 796 797 798 799 800 801 802 803 804 805 806 807 |
Th_Render(blob_str(pBody));
}
if( !raw ){
style_footer();
}
#endif
}else{
cgi_set_content_type(zMime);
cgi_set_content(pBody);
}
}
/*
| > | 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 |
Th_Render(blob_str(pBody));
}
if( !raw ){
style_footer();
}
#endif
}else{
fossil_free(style_csp(1));
cgi_set_content_type(zMime);
cgi_set_content(pBody);
}
}
/*
|
| ︙ | ︙ |