fix(bootstrap) Include Bootstrap manually to avoid reported XSS vulnerability (#43)

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2018-07-12 14:20:10 +02:00
1 parent 68925fad12
commit ec9c0d444d
16 files changed
+9472 -18

No files matched your search

+26
View File
@@ -1,3 +1,14 @@
/*
* Manually including bootstrap to avoid XSS attacks on data-target attributes
* Issue reference: https://github.com/twbs/bootstrap/issues/20184
*
* As Bootstrap 3 is no longer being officially developed or supported, they created a branch on
* the official repository that contains the fix for the XSS attacks
* Branch: https://github.com/twbs/bootstrap/tree/v3.4.0-dev
*
* We stopped using the Meteor's twbs:bootstrap package and started adding the files manually
*/
Package.describe({
name: 'ohif:design',
summary: 'OHIF Design styles and components',
@@ -14,8 +25,23 @@ Package.onUse(function(api) {
api.use('ohif:themes');
// Bootstrap fonts
api.addAssets([
'bootstrap/fonts/glyphicons-halflings-regular.eot',
'bootstrap/fonts/glyphicons-halflings-regular.svg',
'bootstrap/fonts/glyphicons-halflings-regular.ttf',
'bootstrap/fonts/glyphicons-halflings-regular.woff',
'bootstrap/fonts/glyphicons-halflings-regular.woff2'
], 'client');
api.addAssets('assets/theme-icons.png', 'client');
// Bootstrap files
api.addFiles([
'bootstrap/css/bootstrap.css',
'bootstrap/js/bootstrap.js'
], 'client');
// Importable colors / typography settings
api.addFiles([
'app.styl',