summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/uri.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/uri.lua b/server/src/uri.lua
index 35de8a74..4505d554 100644
--- a/server/src/uri.lua
+++ b/server/src/uri.lua
@@ -8,6 +8,9 @@ local OS = platform.OS == 'Windows' and 'win32' or 'unix'
local function decode(uri)
local obj = URI:new(uri)
+ if not obj.filesystem_path then
+ return ''
+ end
local fullPath = obj:filesystem_path(OS)
local path = fs.path(fullPath)
return path