From c8ae1a265a14688a5b0dbc3d8928dea8c742a1cc Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 31 Jan 2013 19:54:50 -0800 Subject: [PATCH] Extra protection in the rgloader file --- templates/rgloader.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/rgloader.rb b/templates/rgloader.rb index 53f19cb80..c3c05b095 100644 --- a/templates/rgloader.rb +++ b/templates/rgloader.rb @@ -4,4 +4,6 @@ if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"] require File.expand_path( "rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]) +else + raise "Encoded files can't be read outside of the Vagrant installer." end