* 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.
|
* Added command-line option `-t <timeout>` for clixon_netconf - quit after max time.
|
||||||
|
|
||||||
### Corrected Bugs
|
### 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
|
* Single quotes for XML attributes https://github.com/clicon/clixon/issues/51
|
||||||
* Thanks @SCadilhac
|
* Thanks @SCadilhac
|
||||||
* Fixed https://github.com/clicon/clixon/issues/46 Issue with empty values in leaf-list
|
* 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
|
else
|
||||||
switch (str[i]){
|
switch (str[i]){
|
||||||
case '&':
|
case '&':
|
||||||
if ((l=snprintf(&esc[j], 7, "& ")) < 0){
|
if ((l=snprintf(&esc[j], 6, "&")) < 0){
|
||||||
clicon_err(OE_UNIX, errno, "snprintf");
|
clicon_err(OE_UNIX, errno, "snprintf");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
@ -407,14 +407,14 @@ xml_chardata_encode(char **escp,
|
||||||
cdata++;
|
cdata++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((l=snprintf(&esc[j], 6, "< ")) < 0){
|
if ((l=snprintf(&esc[j], 5, "<")) < 0){
|
||||||
clicon_err(OE_UNIX, errno, "snprintf");
|
clicon_err(OE_UNIX, errno, "snprintf");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
j += l;
|
j += l;
|
||||||
break;
|
break;
|
||||||
case '>':
|
case '>':
|
||||||
if ((l=snprintf(&esc[j], 6, "> ")) < 0){
|
if ((l=snprintf(&esc[j], 5, ">")) < 0){
|
||||||
clicon_err(OE_UNIX, errno, "snprintf");
|
clicon_err(OE_UNIX, errno, "snprintf");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue