Skip to content

Commit

Permalink
Merge pull request #211 from belguinan/patch-1
Browse files Browse the repository at this point in the history
Fix XSS on search form
  • Loading branch information
jsdecena committed Aug 7, 2019
2 parents f0d5035 + 642d5de commit 36ff6a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/layouts/search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<!-- search form -->
<form action="{{$route}}" method="get" id="admin-search">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search..." value="{!! request()->input('q') !!}">
<input type="text" name="q" class="form-control" placeholder="Search..." value="{{ request()->input('q') }}">
<span class="input-group-btn">
<button type="submit" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i> Search </button>
</span>
</div>
</form>
<!-- /.search form -->
</div>
</div>

0 comments on commit 36ff6a5

Please sign in to comment.