Skip to content

Commit

Permalink
fix dom-xss vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Dec 16, 2021
1 parent 57b7a7a commit d4665fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/feed/Views/importer.js
Expand Up @@ -37,14 +37,14 @@ $("#import-textarea").change(function() {
if (value=='null') value = null;

if (isNaN(time)) {
$("#import-alert").html("<b>Error:</b> invalid time: "+time).show();
$("#import-alert").html("<b>Error:</b> invalid time on line "+i).show();
return false;
} else {
time = parseInt(time);
}

if (isNaN(value)) {
$("#import-alert").html("<b>Error:</b> invalid value: "+value).show();
$("#import-alert").html("<b>Error:</b> invalid value on line "+i).show();
return false;
} else {
value = parseFloat(value);
Expand Down

0 comments on commit d4665fa

Please sign in to comment.