Skip to content

Commit

Permalink
連続するスラッシュが含まれる場合はエラーとなるように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
pineray committed Aug 18, 2022
1 parent b2b8067 commit 857ca69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Eccube/Form/Type/Admin/BlockType.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
new Assert\Regex([
'pattern' => '/^[0-9a-zA-Z\/_]+$/',
]),
new Assert\Regex([
'pattern' => '/^(?!.*\/\/).+$/',
]),
],
])
->add('block_html', TextareaType::class, [
Expand Down

0 comments on commit 857ca69

Please sign in to comment.