Commit 7e29c0a4 authored by William M. Brack's avatar William M. Brack

implemented fix for M$ IIS redirect provided by Ian Hummel fixed problem

* nanohttp.c: implemented fix for M$ IIS redirect provided
  by Ian Hummel
* relaxng.c: fixed problem with notAllowed compilation
  (bug 138793)
parent 0a194580
Fri Apr 2 17:03:48 HKT 2004 William Brack <wbrack@mmm.com.hk>
* nanohttp.c: implemented fix for M$ IIS redirect provided
by Ian Hummel
* relaxng.c: fixed problem with notAllowed compilation
(bug 138793)
Thu Apr 1 22:07:52 CEST 2004 Daniel Veillard <daniel@veillard.com>
* uri.c: fix for xmlUriEscape on "http://user@somewhere.com"
......
......@@ -840,7 +840,15 @@ xmlNanoHTTPScanAnswer(xmlNanoHTTPCtxtPtr ctxt, const char *line) {
while ((*cur == ' ') || (*cur == '\t')) cur++;
if (ctxt->location != NULL)
xmlFree(ctxt->location);
ctxt->location = xmlMemStrdup(cur);
if (*cur == '/') {
xmlChar *tmp_http = xmlStrdup(BAD_CAST "http://");
xmlChar *tmp_loc =
xmlStrcat(tmp_http, (const xmlChar *) ctxt->hostname);
ctxt->location =
(char *) xmlStrcat (tmp_loc, (const xmlChar *) cur);
} else {
ctxt->location = xmlMemStrdup(cur);
}
} else if (!xmlStrncasecmp(BAD_CAST line, BAD_CAST"WWW-Authenticate:", 17)) {
cur += 17;
while ((*cur == ' ') || (*cur == '\t')) cur++;
......
......@@ -2959,10 +2959,8 @@ xmlRelaxNGIsCompileable(xmlRelaxNGDefinePtr def)
case XML_RELAXNG_LIST:
case XML_RELAXNG_PARAM:
case XML_RELAXNG_VALUE:
ret = 0;
break;
case XML_RELAXNG_NOT_ALLOWED:
ret = -1;
ret = 0;
break;
}
if (ret == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment