From 42b2905107c8449b9be1eb0070c7c897c6dfe6bb Mon Sep 17 00:00:00 2001 From: shy Date: Sun, 9 Jun 2024 23:32:15 +0800 Subject: [PATCH] add some --- lib/misc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/misc.js b/lib/misc.js index 03031016..6dc8b24d 100644 --- a/lib/misc.js +++ b/lib/misc.js @@ -226,8 +226,8 @@ Volcanos("misc", { path = nfs.P+path+(path.indexOf("usr/icons/") == -1? (space? can.core.Split(_version, "&")[0]: _version): "") } if (!can.base.beginWith(path, web.HTTP)) { if (serve && serve.indexOf(location.origin) == -1) { var u = can.base.ParseURL(serve); path = u.origin + path } } - if (can.base.beginWith(path, web.HTTP)) { return path } - if (path.indexOf("pod=") > 0) { return path } + if (!space && can.base.beginWith(path, web.HTTP)) { return path } + if (!space && path.indexOf("pod=") > 0) { return path } return can.base.MergeURL(path, ice.POD, space||can.ConfSpace()||can.misc.Search(can, ice.POD)) }, ShareLocal: function(can, path, space) { if (can.base.beginWith(path, web.HTTP, nfs.PS)) { return path }