From a9dd52a4fb781e108817aaacbbcbfbdc1a84aeab Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sun, 10 Sep 2017 02:16:14 -0700 Subject: [PATCH] Ensure mount points are absolute. --- lib/src/rocket.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/rocket.rs b/lib/src/rocket.rs index 70f90352..6432b987 100644 --- a/lib/src/rocket.rs +++ b/lib/src/rocket.rs @@ -490,9 +490,9 @@ impl Rocket { Paint::purple("Mounting"), Paint::blue(base)); - if base.contains('<') { + if base.contains('<') || !base.starts_with('/') { error_!("Bad mount point: '{}'.", base); - error_!("Mount points must be static paths!"); + error_!("Mount points must be absolute URIs with static paths!"); panic!("Bad mount point.") }