Skip to content

Commit

Permalink
Fixed: #3549 XSS under graph preview mode (#3600)
Browse files Browse the repository at this point in the history
Co-authored-by: Jing Chen <three_chenjing@sohu.com>
  • Loading branch information
ddb4github and Jing Chen committed Jun 9, 2020
1 parent de5e60c commit a3233a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/html_graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function html_graph_preview_filter($page, $action, $devices_where = '', $templat
}
}
print '>';
print $gt['name'] . "</option>\n";
print html_escape($gt['name']) . "</option>\n";
}
}
}
Expand Down

0 comments on commit a3233a1

Please sign in to comment.