Ensure mount points are absolute.

This commit is contained in:
Sergio Benitez 2017-09-10 02:16:14 -07:00
parent 96b3d81882
commit a9dd52a4fb
1 changed files with 2 additions and 2 deletions

View File

@ -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.")
}