Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

410 Gone on catalog search page #47

Closed
artmouse opened this issue Jun 13, 2023 · 1 comment
Closed

410 Gone on catalog search page #47

artmouse opened this issue Jun 13, 2023 · 1 comment

Comments

@artmouse
Copy link

artmouse commented Jun 13, 2023

Hi!
If there are Cyrillic characters in the search request, the server returns response status 410.

When you search for "Кран" - 410 Gone

1**.***.***.**1 - - [13/Jun/2023:13:02:48 +0300] "GET http://domain.com/catalogsearch/result/?q=%D0%BA%D1%80%D0%B0%D0%BD HTTP/1.1" 410 456 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0" 0.001 - "6cabd635dbe67c5f2eea81c1116e8828"
127.0.0.1 - - [13/Jun/2023:13:02:48 +0300] "GET http://domain.com/catalogsearch/result/?q=%D0%BA%D1%80%D0%B0%D0%BD HTTP/1.1" 410 279 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0" 0.000 - "1a23d4e96f623d71b73b4cfd48efc485"

When you search for "Qtap" - all OK

127.0.0.1 - - [13/Jun/2023:13:01:40 +0300] "GET http://domain.com/catalogsearch/result/?q=qtap HTTP/1.1" 200 404415 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0" 0.044 - "efbc798ec36a0274241e34e68aab9ff5"
1**.***.***.**1 - - [13/Jun/2023:13:01:40 +0300] "GET http://domain.com/catalogsearch/result/?q=qtap HTTP/1.1" 200 46590 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0" 0.056 - "1ffa658eb52d2fbf6bda68b54d8f9cf3"

Perhaps the problem is here:

if ($arg_q !~* "^[a-zA-Z0-9]+((%20|\+)([a-zA-Z0-9]+)?)*(&_=\d+)?$") { return 410; }

@magenx
Copy link
Owner

magenx commented Jun 14, 2023

test leftover
you can remove it

@magenx magenx closed this as completed Oct 30, 2023
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

No branches or pull requests

2 participants