X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaEngine.ml;h=ebcf0538ac75030c6e71e9fffc961d3e5d2ccafd;hb=49734f6f824dd310520cbb0cee0e605296e2d975;hp=b20755d870bb4a87def160f7f57d05e9ee7c12e4;hpb=fddf15f1e9d253316bdcb854c2ff7ec64144bde8;p=helm.git diff --git a/helm/matita/matitaEngine.ml b/helm/matita/matitaEngine.ml index b20755d87..ebcf0538a 100644 --- a/helm/matita/matitaEngine.ml +++ b/helm/matita/matitaEngine.ml @@ -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