-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.0.18rc1, 4.4.6rc1, 5.0.0alpha2
-
Sprint 61 (Feb 2020), Sprint 62 (Mar 2020)
-
0.125
Problem description: Empty delimiter runtime error is observed when switching to "Test" tab in Regular expression configuration form, if an empty expression with expression type = "Character string not included" is configured in "Expressions" section.
Steps to reproduce:
- Navigate to Administration => General => Regular expressions and press "New regular expression" button
- In field "Expressions" set Expression type = "Character string included" and make sure field "Expression" is empty
- Switch to "Test" tab
Result: The following runtime error is observed:
mb_strpos(): Empty delimiter [zabbix.php:21 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerRegExTest->doAction() -> CGlobalRegexp::matchExpression() -> CGlobalRegexp::_matchString() -> mb_strpos() -> CConfigFile->{closure}() in include/classes/regexp/CGlobalRegexp.php:207]
Expected: no errors should be triggered.