* No space after ampersand escaped characters in XML https://github.com/clicon/clixon/issues/52
* Thanks @SCadilhac
This commit is contained in:
parent
f273f52148
commit
7450eae046
5 changed files with 17 additions and 15 deletions
|
|
@ -78,6 +78,8 @@
|
|||
* Added command-line option `-t <timeout>` for clixon_netconf - quit after max time.
|
||||
|
||||
### Corrected Bugs
|
||||
* No space after ampersand escaped characters in XML https://github.com/clicon/clixon/issues/52
|
||||
* Thanks @SCadilhac
|
||||
* Single quotes for XML attributes https://github.com/clicon/clixon/issues/51
|
||||
* Thanks @SCadilhac
|
||||
* Fixed https://github.com/clicon/clixon/issues/46 Issue with empty values in leaf-list
|
||||
|
|
|
|||
|
|
@ -395,7 +395,7 @@ xml_chardata_encode(char **escp,
|
|||
else
|
||||
switch (str[i]){
|
||||
case '&':
|
||||
if ((l=snprintf(&esc[j], 7, "& ")) < 0){
|
||||
if ((l=snprintf(&esc[j], 6, "&")) < 0){
|
||||
clicon_err(OE_UNIX, errno, "snprintf");
|
||||
goto done;
|
||||
}
|
||||
|
|
@ -407,14 +407,14 @@ xml_chardata_encode(char **escp,
|
|||
cdata++;
|
||||
break;
|
||||
}
|
||||
if ((l=snprintf(&esc[j], 6, "< ")) < 0){
|
||||
if ((l=snprintf(&esc[j], 5, "<")) < 0){
|
||||
clicon_err(OE_UNIX, errno, "snprintf");
|
||||
goto done;
|
||||
}
|
||||
j += l;
|
||||
break;
|
||||
case '>':
|
||||
if ((l=snprintf(&esc[j], 6, "> ")) < 0){
|
||||
if ((l=snprintf(&esc[j], 5, ">")) < 0){
|
||||
clicon_err(OE_UNIX, errno, "snprintf");
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue