--- C:/Documents and Settings/Chris/Desktop/ModelGlue/gesture/module/XMLModuleLoader.cfc	Mon Aug 10 13:42:12 2009
+++ C:/Coldfusion/CF8/wwwroot/ModelGlue/gesture/module/XMLModuleLoader.cfc	Fri Sep 18 11:31:58 2009
@@ -31,9 +31,15 @@
 	<cfset arguments.loadedModules[arguments.path] = true />
 	
 	<!--- Expand path if needed. --->
-	<cfif not fileExists(arguments.path) and fileExists(expandPath(arguments.path))>
-		<cfset arguments.path = expandPath(arguments.path) />
-	</cfif>
+	<!--- try/catch required to work in sandboxed environment --->
+	<cftry>
+		<cfif not fileExists(arguments.path) and fileExists(expandPath(arguments.path))>
+			<cfset arguments.path = expandPath(arguments.path) />
+		</cfif>
+		<cfcatch>
+			<cfset arguments.path = expandPath(arguments.path) />
+		</cfcatch>
+	</cftry>
 	
 	<cfif not fileExists(arguments.path)>
 		<cfthrow message="The XML module to be loaded from ""#arguments.path#"" can't be loaded because the file can't be found or read."
