Commit 3c56473b authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #877 from ethereum/fixImportFile

fix filename check
parents c2803ba5 de021097
...@@ -143,7 +143,7 @@ function fileExplorer (appAPI, files) { ...@@ -143,7 +143,7 @@ function fileExplorer (appAPI, files) {
function loadFile () { function loadFile () {
var fileReader = new FileReader() var fileReader = new FileReader()
fileReader.onload = function (event) { fileReader.onload = function (event) {
if (helper.checkSpecialChars(name)) { if (helper.checkSpecialChars(file.name)) {
modalDialogCustom.alert('Special characters are not allowed') modalDialogCustom.alert('Special characters are not allowed')
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment