-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchThe issue has been fixed in 2.4-develop branchIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passed
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:
$matchingResultCode = preg_match($pattern, $synonymGroup); |
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
Metadata
Metadata
Assignees
Labels
Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchThe issue has been fixed in 2.4-develop branchIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passed