mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 19:14:45 +02:00
Only allow one * (#797)
This commit is contained in:
parent
8358e410dc
commit
9716b1e64d
@ -545,6 +545,7 @@ class ListFiles extends ListRecords
|
|||||||
->form([
|
->form([
|
||||||
TextInput::make('searchTerm')
|
TextInput::make('searchTerm')
|
||||||
->placeholder('Enter a search term, e.g. *.txt')
|
->placeholder('Enter a search term, e.g. *.txt')
|
||||||
|
->regex('/^[^*]*\*?[^*]*$/')
|
||||||
->minLength(3),
|
->minLength(3),
|
||||||
])
|
])
|
||||||
->action(fn ($data) => redirect(SearchFiles::getUrl([
|
->action(fn ($data) => redirect(SearchFiles::getUrl([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user