Skip to content

Commit 7e39c88

Browse files
authored
Removes clipboard.min.js as a cdn include, and now bundles it locally.
2 parents 93236d6 + e975d63 commit 7e39c88

File tree

4 files changed

+13
-58
lines changed

4 files changed

+13
-58
lines changed

BBCodePlus/BBCodePlus.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function register() {
2222
$this->name = plugin_lang_get( 'title' );
2323
$this->description = plugin_lang_get( 'description' );
2424
$this->page = 'config';
25-
$this->version = '2.1.14';
25+
$this->version = '2.1.15';
2626

2727
$this->requires['MantisCore'] = '2.0.0';
2828
# this plugin can coexist with MantisCoreFormatting.
@@ -108,7 +108,6 @@ function footer() {
108108
function csp_headers() {
109109
# relax csp when processing markitup.
110110
if ( (ON == plugin_config_get( 'process_markitup' )) && function_exists( 'http_csp_add' ) ) {
111-
http_csp_add( 'script-src', "'self' 'unsafe-inline' 'unsafe-eval' https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js" );
112111
http_csp_add( 'img-src', "*" );
113112
http_csp_add( 'frame-ancestors', "'self'" );
114113
}

BBCodePlus/files/prism/clipboard.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)