feat(vulnerabilities): adds description of vulnerability for sql interpolation

also fixes several small errors on that page, otherwise JS raises errors.

fixes #181
This commit is contained in:
Joseph Mastey
2017-09-18 18:44:45 -05:00
parent 1fc41f0b8e
commit 9fc05eacde
2 changed files with 32 additions and 10 deletions
+11 -9
View File
@@ -1,18 +1,18 @@
<form action="">
Search by IP: <input type="text" name="ip"><br />
<input type="checkbox" value="" name="field[ip_address]"> IP Address<br />
<input type="checkbox" value="" name="field[referrer]"> Referrer<br />
<input type="checkbox" value="" name="field[user_agent]"> User Agent
<form action="" id="analytics_search">
Search by IP: <input type="text" id="ip" name="ip"><br />
<input type="checkbox" value="" id="field_ip_address" name="field[ip_address]"> IP Address<br />
<input type="checkbox" value="" id="field_referrer" name="field[referrer]"> Referrer<br />
<input type="checkbox" value="" id="field_user_agent" name="field[user_agent]"> User Agent
</form>
<div id="dt_example" class="example_alt_pagination">
<table class="table table-striped table-hover table-bordered pull-left" id="data-table">
<table class="table table-striped table-hover table-bordered pull-left <%= "custom" if params[:field] %>" id="data-table">
<thead>
<tr>
<%
count = (params[:field] ? params[:field].count : 3)
count = (params[:field] ? (params[:field].count+1) : 6)
count.times do %>
<td>&nbsp;</td>
<th>&nbsp;</th>
<% end %>
</tr>
</thead>
@@ -33,6 +33,8 @@
</div>
</div>
<%= javascript_include_tag "jquery.dataTables.js"%>
<script type="text/javascript">
function dataTablePagination(){
@@ -42,4 +44,4 @@ function dataTablePagination(){
};
$(document).ready(dataTablePagination());
</script>
</script>