bugfix: acl_xml_parse.c 宏 IS_CDATA 判断有误

This commit is contained in:
zsx 2018-04-08 14:09:11 +08:00
parent 7afcf03ced
commit 83519e38c9
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
修改历史列表:
------------------------------------------------------------------------
626) 2018.4.8
626.1) bugfix: acl_xml_parse.c 宏 IS_CDATA 判断有误,--- by https://gitee.com/ghostshy
625) 2018.2.24
625.1) acl_unix_listen.c: 当出错时不再采用 fatal 方式,而是给调用者返回给错误

View File

@ -180,7 +180,7 @@ static const char *xml_parse_cdata(ACL_XML *xml, const char *data)
&& (*(x + 2) == 'D' || *(x + 2) == 'd') \
&& (*(x + 3) == 'A' || *(x + 3) == 'a') \
&& (*(x + 4) == 'T' || *(x + 4) == 't') \
&& (*(x + 5) == 'A' || *(x + 5) == 't') \
&& (*(x + 5) == 'A' || *(x + 5) == 'a') \
&& *(x + 6) == '[')
#define CDATA_S sizeof("[CDATA[") - 1