Skip to content

#4341 Form.html: maxlength for search text input field#4342

Merged
dkd-kaehm merged 1 commit intoTYPO3-Solr:mainfrom
pi-phi:patch-1
May 15, 2025
Merged

#4341 Form.html: maxlength for search text input field#4342
dkd-kaehm merged 1 commit intoTYPO3-Solr:mainfrom
pi-phi:patch-1

Conversation

@pi-phi
Copy link
Copy Markdown
Contributor

@pi-phi pi-phi commented Apr 1, 2025

What this pr does

inserting maxlength="50" to input field of search form

How to test

focus a search field with active auto suggest function. hold down the space key and fill the input field with spaces.
before:
watch the server log as requests with longer and longer search string appear until the server is locked up
after:
just a few request appear as after 50 characters no further changes to the input text appear and trigger further AJAX requests

Fixes: #4341

Copy link
Copy Markdown
Collaborator

@dkd-kaehm dkd-kaehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this Pull-request

@dkd-kaehm dkd-kaehm merged commit 650b943 into TYPO3-Solr:main May 15, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Autosuggest requiest count limitation

2 participants