mirror of https://github.com/rwf2/Rocket.git
Ensure mount points are absolute.
This commit is contained in:
parent
96b3d81882
commit
a9dd52a4fb
|
@ -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.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue