Actions
Bug #9119
closedPHP error from easyrule with no aliases in the config
Start date:
11/14/2018
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.4
Affected Architecture:
All
Description
When the aliases section of config.xml is empty, easyrule fails with a PHP error:
Fatal error: Uncaught Error: Cannot create references to/from string offsets in /etc/inc/easyrule.inc:166 Stack trace: #0 /etc/inc/easyrule.inc(248): easyrule_block_alias_add('1.2.3.4', 'wan') #1 /etc/inc/easyrule.inc(365): easyrule_block_host_add('1.2.3.4', 'wan', 'inet') #2 /usr/local/bin/easyrule(101): easyrule_parse_block('wan', '1.2.3.4') #3 {main} thrown in /etc/inc/easyrule.inc on line 166 PHP ERROR: Type: 1, File: /etc/inc/easyrule.inc, Line: 166, Message: Uncaught Error: Cannot create references to/from string offsets in /etc/inc/easyrule.inc:166 Stack trace: #0 /etc/inc/easyrule.inc(248): easyrule_block_alias_add('1.2.3.4', 'wan') #1 /etc/inc/easyrule.inc(365): easyrule_block_host_add('1.2.3.4', 'wan', 'inet') #2 /usr/local/bin/easyrule(101): easyrule_parse_block('wan', '1.2.3.4') #3 {main} thrown
Actions