@samitouri / QOSami-HFS / commits / 4c4b6226

fix: plugin/vhosting: error when root is left empty

Massimo Melina committed Jun 27, 2023 at 00:01 UTC 4c4b622615fd932889c0d55c47f0c14d2d55256e
1 file changed +1 -1
plugins/vhosting/plugin.js
+1 -1
@@ -41,7 +41,7 @@ exports.init = api => {
41 }
42 return
43 }
44 - let { root } = row
44 + let { root='' } = row
45 if (root.endsWith('/'))
46 root = root.slice(0, -1)
47 if (!params)