]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaDb.ml
fix
[helm.git] / helm / matita / matitaDb.ml
index 878bd4fe7656dbeba5326b572967d666643a86c5..d4f5d01b1979246528a51eee128d46e4e175d214 100644 (file)
@@ -65,7 +65,10 @@ let clean_owner_environment () =
     (fun uri ->
       let uri = Pcre.replace ~rex:xpointer_RE ~templ:"" uri in
       List.iter
-        (fun suffix -> Http_getter.unregister (uri ^ suffix))
+        (fun suffix -> 
+          (*prerr_endline ("unregistering " ^ uri ^ suffix);*)
+          Http_getter.unregister (uri ^ suffix))
+        
         [""; ".body"; ".types"])
     owned_uris;
   List.iter (fun statement -> 
@@ -135,7 +138,8 @@ let remove_uri uri =
   [obj_tbl;sort_tbl;rel_tbl;name_tbl;(*conclno_tbl;conclno_hyp_tbl*)count_tbl];
   (* and now the debug job *)  
   let dbg_q = 
-    sprintf "SELECT source FROM %s WHERE h_occurrence LIKE '%s%%'" obj_tbl suri
+    sprintf "SELECT source FROM %s WHERE h_occurrence LIKE '%s%%'" obj_tbl
+    (Mysql.escape suri)
   in
   try 
     let rc = Mysql.exec dbd dbg_q in