diff options
Diffstat (limited to 'src/demo.sml')
-rw-r--r-- | src/demo.sml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demo.sml b/src/demo.sml index ebdf4e40..4e2caa99 100644 --- a/src/demo.sml +++ b/src/demo.sml @@ -197,7 +197,8 @@ fun make {prefix, dirname, guided} = ext = SOME s} val src' = OS.Path.file src in - if OS.FileSys.access (src, []) then + if String.isPrefix (OS.Path.mkCanonical dirname) src + andalso OS.FileSys.access (src, []) then (TextIO.output (out, " | <a target=\"showcase\" href=\""); TextIO.output (out, src'); TextIO.output (out, ".html\"><tt>"); |