1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

ftp: Remove FTP support

Remove the built-in FTP client. If you configure --with-legacy, old
symbols are retained for ABI compatibility.
This commit is contained in:
Nick Wellnhofer
2024-06-12 18:19:55 +02:00
parent 5238404325
commit dba1ed85a3
23 changed files with 16 additions and 2513 deletions

View File

@@ -2288,8 +2288,7 @@ xmlDefaultExternalEntityLoader(const char *url, const char *ID,
if ((ctxt != NULL) &&
(ctxt->options & XML_PARSE_NONET) &&
((xmlStrncasecmp(BAD_CAST url, BAD_CAST "ftp://", 6) == 0) ||
(xmlStrncasecmp(BAD_CAST url, BAD_CAST "http://", 7) == 0))) {
(xmlStrncasecmp(BAD_CAST url, BAD_CAST "http://", 7) == 0)) {
xmlCtxtErrIO(ctxt, XML_IO_NETWORK_ATTEMPT, url);
} else {
input = xmlNewInputFromFile(ctxt, url);