Skip to content

Commit 88aa538

Browse files
committed
Escape search query
1 parent a2ba2c0 commit 88aa538

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/views/forum/search.blade.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
@section('content')
88
<section class="forum">
99
<div class="header">
10-
@if($query)
11-
<h1>Forum Search results for "{{ $query }}"</h1>
10+
@if ($query)
11+
<h1>Forum Search results for "{{{ $query }}}"</h1>
1212
@else
1313
<h1>Forum Search</h1>
1414
@endif
1515
</div>
1616

17-
@if($query)
17+
@if ($query)
1818
<div class="threads">
19-
@if($results->count() > 0)
19+
@if ($results->count() > 0)
2020
{{-- Loop over the threads and display the thread summary partial --}}
21-
@foreach($results as $result)
22-
@if($result->parent)
21+
@foreach ($results as $result)
22+
@if ($result->parent)
2323
@include('forum.threads._index_summary', ['thread' => $result->parent])
2424
@else
2525
@include('forum.threads._index_summary', ['thread' => $result])
@@ -28,7 +28,7 @@
2828
@else
2929
{{-- If no comments are found display a message --}}
3030
<div class="empty-state">
31-
<h3>No results found on the forum for "{{ $query }}"</h3>
31+
<h3>No results found on the forum for "{{{ $query }}}"</h3>
3232
</div>
3333
@endif
3434
</div>

0 commit comments

Comments
 (0)