From: Claudio Sacerdoti Coen Date: Tue, 18 May 2004 08:39:54 +0000 (+0000) Subject: Bug fixed: the xml:base URL and helm:base URI were NOT base URL/URI: they X-Git-Tag: V_0_0_9~48 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=3fb7f6206485d474b576c38c0d622aea73e0f3f0;p=helm.git Bug fixed: the xml:base URL and helm:base URI were NOT base URL/URI: they were full URIs (with also the filename at the end). Fixed by using Filename.dirname (that seems to work also with generic URIs). --- diff --git a/helm/ocaml/getter/http_getter_cache.ml b/helm/ocaml/getter/http_getter_cache.ml index ef0a8dffa..5b0e66832 100644 --- a/helm/ocaml/getter/http_getter_cache.ml +++ b/helm/ocaml/getter/http_getter_cache.ml @@ -102,7 +102,8 @@ let respond_xml in let patch_fun = if patch then - Http_getter_common.patch_xml ~xmlbases:(uri, url) ~via_http () + Http_getter_common.patch_xml + ~xmlbases:(Filename.dirname uri, Filename.dirname url) ~via_http () else (fun x -> x) in