From ffe78ff761b776e97b5ed645666e84118d3e34f6 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Wed, 11 Sep 2024 10:57:17 -0400 Subject: [PATCH] [4.x] Add sanitization (#10787) Co-authored-by: jasonvarga --- .github/workflows/pint-fix.yml | 4 +++- .github/workflows/pint-lint.yml | 3 ++- resources/views/collections/empty.blade.php | 2 +- resources/views/forms/show.blade.php | 2 +- resources/views/taxonomies/empty.blade.php | 2 +- resources/views/taxonomies/show.blade.php | 2 +- resources/views/usergroups/show.blade.php | 2 +- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pint-fix.yml b/.github/workflows/pint-fix.yml index ae003a16cb..71ed952598 100644 --- a/.github/workflows/pint-fix.yml +++ b/.github/workflows/pint-fix.yml @@ -21,7 +21,9 @@ jobs: token: ${{ secrets.PINT }} - name: Fix PHP code style issues - uses: aglipanci/laravel-pint-action@1.0.0 + uses: aglipanci/laravel-pint-action@v2 + with: + pintVersion: 1.16.0 - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/.github/workflows/pint-lint.yml b/.github/workflows/pint-lint.yml index 87a91b0e6d..6e8b71f5bf 100644 --- a/.github/workflows/pint-lint.yml +++ b/.github/workflows/pint-lint.yml @@ -14,7 +14,8 @@ jobs: uses: actions/checkout@v3 - name: Check PHP code style issues - uses: aglipanci/laravel-pint-action@1.0.0 + uses: aglipanci/laravel-pint-action@v2 with: testMode: true verboseMode: true + pintVersion: 1.16.0 diff --git a/resources/views/collections/empty.blade.php b/resources/views/collections/empty.blade.php index 6ff49181ed..717aab35e7 100644 --- a/resources/views/collections/empty.blade.php +++ b/resources/views/collections/empty.blade.php @@ -10,7 +10,7 @@ 'url' => cp_route('collections.index'), 'title' => __('Collections') ]) -

{{ __($collection->title()) }}

+

{{ __($collection->title()) }}

diff --git a/resources/views/forms/show.blade.php b/resources/views/forms/show.blade.php index 58a99a6b06..96a5044b95 100644 --- a/resources/views/forms/show.blade.php +++ b/resources/views/forms/show.blade.php @@ -12,7 +12,7 @@ 'title' => __('Forms') ])
-

+

{{ __($form->title()) }}

diff --git a/resources/views/taxonomies/empty.blade.php b/resources/views/taxonomies/empty.blade.php index f846c653f3..9ed22fc299 100644 --- a/resources/views/taxonomies/empty.blade.php +++ b/resources/views/taxonomies/empty.blade.php @@ -10,7 +10,7 @@ 'url' => cp_route('taxonomies.index'), 'title' => __('Taxonomies') ]) -

{{ __($taxonomy->title()) }}

+

{{ __($taxonomy->title()) }}

diff --git a/resources/views/taxonomies/show.blade.php b/resources/views/taxonomies/show.blade.php index 0386eb60a8..c2c3da0280 100644 --- a/resources/views/taxonomies/show.blade.php +++ b/resources/views/taxonomies/show.blade.php @@ -12,7 +12,7 @@ 'title' => __('Taxonomies') ])
-

{{ __($taxonomy->title()) }}

+

{{ __($taxonomy->title()) }}

@can('edit', $taxonomy) diff --git a/resources/views/usergroups/show.blade.php b/resources/views/usergroups/show.blade.php index ea22d4d7f1..cffd7c4b45 100644 --- a/resources/views/usergroups/show.blade.php +++ b/resources/views/usergroups/show.blade.php @@ -12,7 +12,7 @@ 'title' => __('User Groups') ])
-

{{ __($group->title()) }}

+

{{ __($group->title()) }}

@can('edit', $group)