Skip to content

Commit 03f4bbe

Browse files
authored
Merge pull request #175 from Gustavinho/bug/xss-bug
Bug/xss bug
2 parents c89d987 + 022f400 commit 03f4bbe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

resources/views/components/alerts-handler.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<div
2+
x-cloak
23
x-data='{ open: false, message: "", type: "success" }'
34
x-init="@this.on('notify', (notification) => {
45
open = true;

resources/views/components/editable.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
editing: false
1212
}"
1313
@click.away="editing = false; value = original;">
14-
<input x-cloak
14+
<input
15+
x-cloak
1516
x-ref="input"
1617
x-show="editing"
1718
x-model="value"
@@ -24,7 +25,7 @@ class="block appearance-none w-full bg-white border-gray-300 hover:border-gray-5
2425
@click="editing = true; $nextTick(() => {$refs.input.focus()})"
2526
x-html="value"
2627
class='transition-all duration-300 ease-in-out px-2 py-1 rounded cursor-pointer focus:outline-none hover:bg-white hover:border-gray-500 border border-transparent'>
27-
{!! $model->$field !!}
28+
{!! strip_tags($model->$field) !!}
2829
</div>
2930

3031
</div>

0 commit comments

Comments
 (0)