]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaEngine.ml
check on baseuri
[helm.git] / helm / matita / matitaEngine.ml
index b20755d870bb4a87def160f7f57d05e9ee7c12e4..ebcf0538ac75030c6e71e9fffc961d3e5d2ccafd 100644 (file)
@@ -459,7 +459,11 @@ let eval_command status cmd =
   | TacticAst.Set (loc, name, value) -> 
       let value = 
         if name = "baseuri" then
-          MatitaMisc.strip_trailing_slash value
+          let v = MatitaMisc.strip_trailing_slash value in
+          try
+            ignore (String.index v ' ');
+            command_error "baseuri can't contain spaces"
+          with Not_found -> v
         else
           value
       in