mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-02-10 12:32:25 +00:00
fixed bug #96963, reverted to old behaviour of xmlLoadCatalogs
This commit is contained in:
parent
9fdd8f3f30
commit
ee1494ae67
@ -2917,7 +2917,7 @@ xmlLoadCatalog(const char *filename)
|
||||
|
||||
/**
|
||||
* xmlLoadCatalogs:
|
||||
* @paths: a space-separated list of catalog files.
|
||||
* @paths: a list of directories separated by a colon or a space.
|
||||
*
|
||||
* Load the catalogs and makes their definitions effective for the default
|
||||
* external entity loader.
|
||||
@ -2938,7 +2938,7 @@ xmlLoadCatalogs(const char *pathss) {
|
||||
while (IS_BLANK(*cur)) cur++;
|
||||
if (*cur != 0) {
|
||||
paths = cur;
|
||||
while ((*cur != 0) && (!IS_BLANK(*cur)))
|
||||
while ((*cur != 0) && (*cur != ':') && (!IS_BLANK(*cur)))
|
||||
cur++;
|
||||
path = xmlStrndup((const xmlChar *)paths, cur - paths);
|
||||
if (path != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user