Skip to content

Commit

Permalink
Removes clipboard.min.js as a cdn include, and now bundles it locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkraul authored Jul 1, 2020
2 parents 93236d6 + e975d63 commit 7e39c88
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 58 deletions.
3 changes: 1 addition & 2 deletions BBCodePlus/BBCodePlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function register() {
$this->name = plugin_lang_get( 'title' );
$this->description = plugin_lang_get( 'description' );
$this->page = 'config';
$this->version = '2.1.14';
$this->version = '2.1.15';

$this->requires['MantisCore'] = '2.0.0';
# this plugin can coexist with MantisCoreFormatting.
Expand Down Expand Up @@ -108,7 +108,6 @@ function footer() {
function csp_headers() {
# relax csp when processing markitup.
if ( (ON == plugin_config_get( 'process_markitup' )) && function_exists( 'http_csp_add' ) ) {
http_csp_add( 'script-src', "'self' 'unsafe-inline' 'unsafe-eval' https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js" );
http_csp_add( 'img-src', "*" );
http_csp_add( 'frame-ancestors', "'self'" );
}
Expand Down
7 changes: 7 additions & 0 deletions BBCodePlus/files/prism/clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7e39c88

Please sign in to comment.