even more defensive path expansion (see also 8d381fdef898);
authorwenzelm
Tue, 14 Aug 2012 12:21:32 +0200
changeset 48793 2d6691085b8d
parent 48792 4aa5b965f70e
child 48794 8d2a026e576b
even more defensive path expansion (see also 8d381fdef898);
src/Pure/PIDE/document.scala
--- a/src/Pure/PIDE/document.scala	Tue Aug 14 11:43:08 2012 +0200
+++ b/src/Pure/PIDE/document.scala	Tue Aug 14 12:21:32 2012 +0200
@@ -51,8 +51,9 @@
     object Name
     {
       val empty = Name("", "", "")
-      def apply(path: Path): Name =
+      def apply(raw_path: Path): Name =
       {
+        val path = raw_path.expand
         val node = path.implode
         val dir = path.dir.implode
         val theory = Thy_Header.thy_name(node) getOrElse error("Bad theory file name: " + path)