Closed
Description
Preconditions (*)
2.3.2-xyz
2.3-develop
prolly others
Steps to reproduce (*)
- install magento
- enable elasticsearch
- do a weird search for something like: http://www.a
GET /catalogsearch/result/?q=http://www.a
Expected result (*)
- the search results screen saying the term couldn't be found
Actual result (*)
- error message
- in production mode, error report is generated
The error that occurs is on line 96 of search/Model/SynonymAnalyzer.php:
the error message:
report.ERROR: Warning: preg_match(): Unknown modifier '/' in /var/www/html/vendor/magento/module-search/Model/SynonymAnalyzer.php on line 96
preg_match is evaluating the user input as a regex