]> matita.cs.unibo.it Git - helm.git/blobdiff - matitaB/matita/matitadaemon.ml
Matitaweb: fixed a bug concerning matita/html/xml escaping, which showed when
[helm.git] / matitaB / matita / matitadaemon.ml
index 9e6b11c6f2b6189b07af5dfb007363f342214645..5d745eab776b420d377610685122b75ca3e3af13 100644 (file)
@@ -205,12 +205,12 @@ let retrieve (cgi : Netcgi1_compat.Netcgi_types.cgi_activation) =
     let filename = libdir uid ^ "/" ^ (cgi # argument_value "file") in
     prerr_endline ("reading file " ^ filename);
     let body = 
-     (* Netencoding.Html.encode ~in_enc:`Enc_utf8 ~prefer_name:false ()
+     Netencoding.Html.encode ~in_enc:`Enc_utf8 ~prefer_name:false ()
         (html_of_matita (read_file filename)) in
-     *)
-        html_of_matita (read_file filename) in
+     
+     (*   html_of_matita (read_file filename) in *)
     prerr_endline ("sending:\nBEGIN\n" ^ body ^ "\nEND");
-    let body = "<file>" ^ body ^ "</file>" in
+    let body = "<response><file>" ^ body ^ "</file></response>" in
     let baseuri, incpaths = 
       try 
         let root, baseuri, _fname, _tgt =