mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
change switch_strlen_zero to zstr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -208,7 +208,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev
|
||||
|
||||
/* Perform validation */
|
||||
if (value) {
|
||||
if (!switch_strlen_zero(string_options->validation_regex)) {
|
||||
if (!zstr(string_options->validation_regex)) {
|
||||
if (switch_regex_match(value, string_options->validation_regex) == SWITCH_STATUS_SUCCESS) {
|
||||
newstring = value; /* Regex match, accept value*/
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user