Skip to content

Commit 754a570

Browse files
committed
Merge branch 'security-fixes' of github.com:GuilhermmeDev/doe.it into security-fixes
2 parents 986fad5 + d915b5f commit 754a570

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/Http/Controllers/MainController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function home()
2424
$query = Campaign::orderBy('created_at', 'desc');
2525

2626
if ($search) {
27-
$query->where('Title', 'like', '%' . $search . '%');
27+
$query->where('Title', 'like', '%'.$search.'%');
2828
}
2929

3030
$campaigns = $query->get();
@@ -35,11 +35,11 @@ public function home()
3535
public function terms()
3636
{
3737
$filename = 'termos_de_uso_e_privacidade.pdf';
38-
$path = 'terms/' . $filename;
38+
$path = 'terms/'.$filename;
3939

4040
$disk = Storage::disk('public');
4141

42-
if (!$disk->exists($path)) {
42+
if (! $disk->exists($path)) {
4343
abort(404, 'O arquivo não existe ou não foi encontrado.');
4444
}
4545

@@ -49,8 +49,8 @@ public function terms()
4949

5050
return new Response($fileContents, 200, [
5151
'Content-Type' => 'application/pdf',
52-
'Content-Disposition' => 'inline; filename="' . $filename . '"',
53-
'Cache-Control' => 'no-cache, must-revalidate'
52+
'Content-Disposition' => 'inline; filename="'.$filename.'"',
53+
'Cache-Control' => 'no-cache, must-revalidate',
5454
]);
5555
}
5656
}

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
Route::patch('/cpf', [ProfileController::class, 'registerCpf']);
4242
});
4343

44-
require __DIR__ . '/auth.php';
44+
require __DIR__.'/auth.php';

0 commit comments

Comments
 (0)