]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaDb.ml
fix_escaping
[helm.git] / helm / matita / matitaDb.ml
index aef37a2d0bee52f43f54c0374361073cdceb4f36..d4f5d01b1979246528a51eee128d46e4e175d214 100644 (file)
@@ -138,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