"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "utils.c" between
minidlna-1.1.4.tar.gz and minidlna-1.1.5.tar.gz

About: ReadyMedia (formerly known as MiniDLNA) is a simple media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients.

utils.c  (minidlna-1.1.4):utils.c  (minidlna-1.1.5)
skipping to change at line 197 skipping to change at line 197
} }
return string; return string;
} }
char * char *
unescape_tag(const char *tag, int force_alloc) unescape_tag(const char *tag, int force_alloc)
{ {
char *esc_tag = NULL; char *esc_tag = NULL;
if( strstr(tag, "&") || strstr(tag, "<") || strstr(tag, ">") if (strchr(tag, '&') &&
|| strstr(tag, """) ) (strstr(tag, "&") || strstr(tag, "<") || strstr(tag, ">") |
|
strstr(tag, """) || strstr(tag, "'")))
{ {
esc_tag = strdup(tag); esc_tag = strdup(tag);
esc_tag = modifyString(esc_tag, "&", "&", 1); esc_tag = modifyString(esc_tag, "&", "&", 1);
esc_tag = modifyString(esc_tag, "&lt;", "<", 1); esc_tag = modifyString(esc_tag, "&lt;", "<", 1);
esc_tag = modifyString(esc_tag, "&gt;", ">", 1); esc_tag = modifyString(esc_tag, "&gt;", ">", 1);
esc_tag = modifyString(esc_tag, "&quot;", "\"", 1); esc_tag = modifyString(esc_tag, "&quot;", "\"", 1);
esc_tag = modifyString(esc_tag, "&apos;", "'", 1);
} }
else if( force_alloc ) else if( force_alloc )
esc_tag = strdup(tag); esc_tag = strdup(tag);
return esc_tag; return esc_tag;
} }
char * char *
escape_tag(const char *tag, int force_alloc) escape_tag(const char *tag, int force_alloc)
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS