Skip to content

Commit

Permalink
Merge pull request #327 from statikbe/feature/322-fix-regex-validate-…
Browse files Browse the repository at this point in the history
…input-extension

322: fixed regex in the validateInputExtension file
  • Loading branch information
Numkil authored Apr 18, 2024
2 parents ca54194 + dd17762 commit 199b9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/statik/src/web/twig/ValidateInputExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class ValidateInputExtension extends AbstractExtension
{
private const COMMON_QUERY_CHARACTERS_REGEX = "/^[a-zA-Z0-9.!?'\"]+$/";
private const COMMON_QUERY_CHARACTERS_REGEX = "/^[a-zA-Z0-9.!?\s'\"]+$/";

public function getTests(): array
{
Expand Down

0 comments on commit 199b9f9

Please sign in to comment.