only load soljson file

pull/1/head
yann300 7 years ago
parent 63a878eb36
commit 851aef0ef0
  1. 4
      src/app/tabs/settings-tab.js

@ -140,6 +140,10 @@ function loadVersion (version, queryParams, appAPI, el) {
url = location + 'soljson.js' url = location + 'soljson.js'
} else { } else {
if (version.indexOf('soljson') !== 0 || version.match(/(\/|:|\*|\?|"|<|>|\\|\||')/) != null) {
console.log('loading ' + version + ' not allowed')
return
}
url = 'https://ethereum.github.io/solc-bin/bin/' + version url = 'https://ethereum.github.io/solc-bin/bin/' + version
} }
var isFirefox = typeof InstallTrigger !== 'undefined' var isFirefox = typeof InstallTrigger !== 'undefined'

Loading…
Cancel
Save