Skip to content

Commit a2a64d4

Browse files
cemerickweavejester
authored andcommitted
change dummy directory used in safe-path? tests to avoid automountd /home dir on OS X; .getCanonicalPath tosses IOExceptions on File objs for nonexistent paths under /home in that env
1 parent e718789 commit a2a64d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/compojure/http/helpers.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
{:headers {"Content-Type" "text/html"}})))
1818

1919
(deftest test-safe-path
20-
(is (not (safe-path? "/home/compojure" "../private/secret.txt")))
21-
(is (safe-path? "/home/compojure" "public/index.html")))
20+
(is (not (safe-path? "/basedir/compojure" "../private/secret.txt")))
21+
(is (safe-path? "/basedir/compojure" "public/index.html")))

0 commit comments

Comments
 (0)