smalos / nubuilder_dev

eval() should not be used JS-0060
Security
Major
8 occurrences in this check
eval can be harmful.
4255    const v = 0
4256
4257    if (formula != '') {
4258      eval('var v = ' + formula)4259    }
4260
4261    const fixed = nuFORM.addFormatting(v, fmt)
eval can be harmful.
4147    const sfid = $(e.target).parent().parent().parent()[0].id
4148    const click = $('#' + sfid).attr('data-nu-clickdelete')
4149
4150    eval(click)4151
4152    nuHasBeenEdited()
4153    nuCalculateForm()
eval can be harmful.
4041
4042  nuCalculateForm()
4043
4044  eval(fm.lookup_javascript)4045
4046  $('#dialogClose').click()
4047}
eval can be harmful.
2722    })
2723  }
2724
2725  eval(after)2726}
2727
2728function nuLabel (w, i, p, prop) {
eval can be harmful.
2664
2665  const nuCancel = false
2666
2667  eval(before)2668
2669  if (nuCancel) { return }
2670
eval can be harmful.
1702  }
1703
1704  if (s.substr(0, 1) + s.substr(-1) == '[]') {
1705    eval('a = ' + s)1706  }
1707
1708  $id.append('<option value=""></option>')
eval can be harmful.
 923  if (obj.datalist !== null && obj.datalist !== '' && typeof obj.datalist !== 'undefined') {
 924    let dl = obj.datalist
 925    if (!$.isArray(dl)) dl = JSON.parse(dl)
 926    if (!$.isArray(dl)) dl = eval(dl) 927    nuAddDatalist($id.attr('id'), dl)
 928  }
 929}
eval can be harmful.
 444          let js = obj.js[j].js
 445          js = js.replaceAll('(this)', '("#' + obj.id + '")')
 446          js = js.replaceAll('this.', obj.id + '.')
 447          eval(js) 448        }
 449      }
 450    }