summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/utility.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/utility.lua b/server/src/utility.lua
index 5ff02b8b..b908bdc7 100644
--- a/server/src/utility.lua
+++ b/server/src/utility.lua
@@ -208,6 +208,9 @@ function io.load(file_path)
if not f then
return nil, e
end
+ if f:read(3) ~= '\xEF\xBB\xBF' then
+ f:seek("set")
+ end
local buf = f:read 'a'
f:close()
return buf