Skip to content

Commit

Permalink
Fix xss bug in search results.
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Dec 22, 2016
1 parent 72afa85 commit d7a2cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/search_results.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<form role="form" action="/search" method="GET">
<div class="col-lg-8" style="text-align:center; padding-right:0px;">
<div class="form-group input-group" style="text-align:center;">
<input type="text" class="form-control" placeholder="Search Query" id="searchInput" name="searchInput" value="<%=@q%>">
<input type="text" class="form-control" placeholder="Search Query" id="searchInput" name="searchInput" value="<%=h(@q)%>">
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<i class="fa fa-search"></i>
Expand Down

0 comments on commit d7a2cfa

Please sign in to comment.