Branch: Tag:

1999-11-22

1999-11-22 23:34:54 by Fredrik Noring <noring@nocrew.org>

Added append_path as an alternative to combine_path (avoiding security problems with double-dots).

Rev: src/testsuite.in:1.231

1: - test_true([["$Id: testsuite.in,v 1.230 1999/11/20 12:43:19 mirar Exp $"]]) + test_true([["$Id: testsuite.in,v 1.231 1999/11/22 23:34:54 noring Exp $"]])      cond([[all_constants()->_verify_internals]],   [[
3025:   test_eq([[combine_path("./foobar/.","..")]],".")   test_eq([[combine_path("/","foo","bar","gazonk")]],"/foo/bar/gazonk")    + // - Stdio.append_path + test_eq([[ Stdio.append_path("../foo/", "../bar") ]], "../foo/bar") + test_eq([[ Stdio.append_path("../foo/", "../bar", "../baz") ]], "../foo/bar/baz") + test_eq([[ Stdio.append_path("../foo/", "../bar", "../baz", "../fie/../faz") ]], "../foo/bar/baz/faz") +    // - compile_file   // FIXME: add tests for compile_file