@oipage/cli 0.3.0-alpha.1 → 0.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG +9 -2
- package/bin/WebSocket/index.js +29 -6
- package/bin/proxy.js +9 -2
- package/bin/serve.js +40 -13
- package/bin/tools/openBrowser.js +27 -18
- package/bin/tools/resolve404.js +25 -10
- package/package.json +1 -1
package/CHANGELOG
CHANGED
|
@@ -23,11 +23,18 @@ v0.3.0:
|
|
|
23
23
|
date:
|
|
24
24
|
changes:
|
|
25
25
|
- 修复bug
|
|
26
|
-
1
|
|
27
|
-
|
|
26
|
+
1、修复服务器若干问题
|
|
27
|
+
* 路径穿越漏洞(Path Traversal)
|
|
28
|
+
比如: printf 'GET /../../../../../Users/admin/.codex/auth.json HTTP/1.1\r\nHost: 127.0.0.1:8080\r\nConnection: close\r\n\r\n' | nc 127.0.0.1 8080
|
|
29
|
+
* 404 页面 XSS 漏洞
|
|
30
|
+
* 畸形URL导致客户端持续挂起等待问题
|
|
31
|
+
* 加固阻止 Nmap 等扫描器的服务探测
|
|
32
|
+
* 文件扩展名提取可能抛出 TypeError 问题
|
|
33
|
+
* 路径匹配添加更多兼容,防止意外错误
|
|
28
34
|
2、修复错误读取导致服务器奔溃问题
|
|
29
35
|
- 优化改造
|
|
30
36
|
1、优化命令行相关文档优化,提高可读性
|
|
37
|
+
2、服务器proxy中decodeURIComponent捕获错误,方便调试
|
|
31
38
|
- 新增功能
|
|
32
39
|
1、oipage-cli notebook
|
|
33
40
|
快速笔记
|
package/bin/WebSocket/index.js
CHANGED
|
@@ -8,6 +8,18 @@ const encodeWsFrame = require('./encodeWsFrame');
|
|
|
8
8
|
module.exports = function (port, name, version, isRun) {
|
|
9
9
|
let sockets = [];
|
|
10
10
|
|
|
11
|
+
// 连接速率限制:每IP每分钟最多允许的连接数
|
|
12
|
+
const RATE_LIMIT = 20;
|
|
13
|
+
const RATE_WINDOW = 60000; // 1分钟
|
|
14
|
+
const connectionCount = {};
|
|
15
|
+
|
|
16
|
+
// 定期清理连接计数器
|
|
17
|
+
setInterval(() => {
|
|
18
|
+
for (let ip in connectionCount) {
|
|
19
|
+
delete connectionCount[ip];
|
|
20
|
+
}
|
|
21
|
+
}, RATE_WINDOW);
|
|
22
|
+
|
|
11
23
|
let handler = {
|
|
12
24
|
notifyBrowser: (msg) => {
|
|
13
25
|
for (let socket of sockets) {
|
|
@@ -18,19 +30,30 @@ module.exports = function (port, name, version, isRun) {
|
|
|
18
30
|
|
|
19
31
|
const server = net.createServer(socket => {
|
|
20
32
|
|
|
33
|
+
// 连接速率限制
|
|
34
|
+
const ip = socket.remoteAddress;
|
|
35
|
+
connectionCount[ip] = (connectionCount[ip] || 0) + 1;
|
|
36
|
+
if (connectionCount[ip] > RATE_LIMIT) {
|
|
37
|
+
socket.destroy();
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
|
|
21
41
|
// 错误
|
|
22
42
|
socket.on('error', (error) => {
|
|
23
43
|
console.log('Connection error:', error.message);
|
|
24
44
|
});
|
|
25
45
|
|
|
26
|
-
// 数据
|
|
27
|
-
socket.on('data', buffer => {
|
|
28
|
-
console.log('Connection data:' + (decodeWsFrame(buffer).payloadData?.toString() || "断开连接......"));
|
|
29
|
-
});
|
|
30
|
-
|
|
31
46
|
// 连接
|
|
32
47
|
socket.once('data', buffer => {
|
|
33
48
|
|
|
49
|
+
// 协议过滤:只接受以 HTTP 方法开头的连接,拒绝扫描器探测
|
|
50
|
+
// 2026年8月9日 于南宁
|
|
51
|
+
const head = buffer.toString('ascii', 0, 20);
|
|
52
|
+
if (!/^(GET|POST|OPTIONS|HEAD|PUT|DELETE|PATCH) /i.test(head)) {
|
|
53
|
+
socket.destroy();
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
|
|
34
57
|
// 把请求头变成容易操作的json
|
|
35
58
|
const headers = headersToJSON(buffer.toString());
|
|
36
59
|
|
|
@@ -65,7 +88,7 @@ module.exports = function (port, name, version, isRun) {
|
|
|
65
88
|
// 否则就普通的,
|
|
66
89
|
// 普通的由http服务器提供支持
|
|
67
90
|
else {
|
|
68
|
-
socket.
|
|
91
|
+
socket.destroy();
|
|
69
92
|
|
|
70
93
|
}
|
|
71
94
|
});
|
package/bin/proxy.js
CHANGED
|
@@ -21,10 +21,17 @@ module.exports = function (args, proxy) {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
let headers = request.headers;
|
|
24
|
-
let url
|
|
24
|
+
let url
|
|
25
|
+
|
|
26
|
+
try {
|
|
27
|
+
url = decodeURIComponent(request.url);
|
|
28
|
+
} catch (e) {
|
|
29
|
+
console.log("decodeURIComponent error: ", e);
|
|
30
|
+
throw e;
|
|
31
|
+
}
|
|
25
32
|
|
|
26
33
|
if (proxyItem.pathRewrite) {
|
|
27
|
-
for (pathRewrite_key in proxyItem.pathRewrite) {
|
|
34
|
+
for (let pathRewrite_key in proxyItem.pathRewrite) {
|
|
28
35
|
url = url.replace(new RegExp(pathRewrite_key), proxyItem.pathRewrite[pathRewrite_key]);
|
|
29
36
|
}
|
|
30
37
|
}
|
package/bin/serve.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { join } = require("path");
|
|
1
|
+
const { join, resolve, sep } = require("path");
|
|
2
2
|
const { existsSync, lstatSync, statSync, createReadStream } = require("fs");
|
|
3
3
|
const { createServer } = require('http');
|
|
4
4
|
const packageValue = require("../package.json");
|
|
@@ -22,7 +22,7 @@ module.exports = function (config) {
|
|
|
22
22
|
const cache = "cache" in config.devServer ? config.devServer.cache : true;
|
|
23
23
|
const website = "website" in config.devServer ? config.devServer.website : true;
|
|
24
24
|
const port = +config.devServer.port; // 端口号
|
|
25
|
-
const basePath = (/^\./.test(config.devServer.baseUrl)) ? join(process.cwd(), config.devServer.baseUrl) : config.devServer.baseUrl; // 服务器根路径
|
|
25
|
+
const basePath = resolve((/^\./.test(config.devServer.baseUrl)) ? join(process.cwd(), config.devServer.baseUrl) : config.devServer.baseUrl); // 服务器根路径
|
|
26
26
|
|
|
27
27
|
const name = (config.name || "OIPage") + "-http-server";
|
|
28
28
|
const version = config.version || packageValue.version;
|
|
@@ -30,6 +30,7 @@ module.exports = function (config) {
|
|
|
30
30
|
const wsHandler = WebSocketClass(port + 1, (config.name || "OIPage") + "-ws-server", version, website);
|
|
31
31
|
|
|
32
32
|
// 全局错误捕获,防止服务器因任何未捕获的错误而停机
|
|
33
|
+
// 2026年8月8日 于南宁
|
|
33
34
|
process.on('uncaughtException', function (err) {
|
|
34
35
|
console.log("<i> \x1b[1m\x1b[31m[" + name + "] uncaughtException: " + err.message + "\x1b[0m " + new Date().toLocaleString());
|
|
35
36
|
console.log(err.stack);
|
|
@@ -40,7 +41,29 @@ module.exports = function (config) {
|
|
|
40
41
|
|
|
41
42
|
let Server = createServer(function (request, response) {
|
|
42
43
|
let headers = request.headers;
|
|
43
|
-
|
|
44
|
+
|
|
45
|
+
const rawIp = request.socket.remoteAddress;
|
|
46
|
+
|
|
47
|
+
let url;
|
|
48
|
+
try {
|
|
49
|
+
|
|
50
|
+
// 上游网关二次解码的架构层面风险(%252e 双重编码),导致文件路径被二次解码,导致路径穿越漏洞
|
|
51
|
+
// 后续处理中,对url不要再decodeURIComponent进行解码,防止路径穿越漏洞
|
|
52
|
+
// 2026年8月9日 于南宁
|
|
53
|
+
url = decodeURIComponent(request.url);
|
|
54
|
+
} catch (e) {
|
|
55
|
+
|
|
56
|
+
// 如果 URL 包含无效的百分号编码(如 %ZZ),decodeURIComponent 会抛出 URIError
|
|
57
|
+
// 虽然被 uncaughtException 捕获,但会导致当前请求处理中断且无响应返回,客户端会挂起等待
|
|
58
|
+
// 2026年8月9日 于南宁
|
|
59
|
+
response.writeHead(400, {
|
|
60
|
+
'Content-Type': 'text/plain',
|
|
61
|
+
'Access-Control-Allow-Origin': '*',
|
|
62
|
+
'Server': 'Powered by ' + name + '@' + version
|
|
63
|
+
});
|
|
64
|
+
response.end('Bad Request');
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
44
67
|
|
|
45
68
|
let urlArray = url.split("?");
|
|
46
69
|
url = urlArray[0];
|
|
@@ -55,6 +78,8 @@ module.exports = function (config) {
|
|
|
55
78
|
filePath = join(basePath, url == "/" ? "index.html" : url.replace(/^\//, ""));
|
|
56
79
|
}
|
|
57
80
|
|
|
81
|
+
filePath = resolve(filePath);
|
|
82
|
+
|
|
58
83
|
let proxyIntercept = proxy({
|
|
59
84
|
name,
|
|
60
85
|
version
|
|
@@ -66,7 +91,7 @@ module.exports = function (config) {
|
|
|
66
91
|
|
|
67
92
|
// 请求拦截
|
|
68
93
|
if (doIntercept(url.replace(/^\/@website/, "").replace(/^\/@modules\//, ""), isWebsite ? websiteIntercept : config.devServer.intercept, request, response, wsHandler)) {
|
|
69
|
-
console.log("<i> \x1b[1m\x1b[32m[" + name + "] intercept: " + url + '\x1b[0m ' + new Date().toLocaleString());
|
|
94
|
+
console.log("<i> \x1b[1m\x1b[32m[" + name + "] intercept: " + url + '\x1b[0m ' + new Date().toLocaleString() + " " + rawIp);
|
|
70
95
|
} else {
|
|
71
96
|
|
|
72
97
|
// 对应前置都没有找到的,默认去当前命令行找
|
|
@@ -77,7 +102,9 @@ module.exports = function (config) {
|
|
|
77
102
|
|
|
78
103
|
// 禁止访问沙箱外文件,路径穿越拦截
|
|
79
104
|
// 2026年8月8日 于南宁
|
|
80
|
-
if (!filePath.startsWith(basePath))
|
|
105
|
+
if ((!(filePath.startsWith(basePath + sep) || filePath === basePath) &&
|
|
106
|
+
!(filePath.startsWith(process.cwd() + sep) || filePath === process.cwd())
|
|
107
|
+
) || filePath.includes('\0')) {
|
|
81
108
|
response.writeHead(403, {
|
|
82
109
|
'Content-Type': "text/plain;charset=utf-8",
|
|
83
110
|
'Access-Control-Allow-Origin': '*',
|
|
@@ -85,7 +112,7 @@ module.exports = function (config) {
|
|
|
85
112
|
});
|
|
86
113
|
response.write("Path Traversal attack");
|
|
87
114
|
response.end();
|
|
88
|
-
console.log("<i> \x1b[1m\x1b[31m[" + name + "] Path Traversal attack, path: " + url + "\x1b[0m " + new Date().toLocaleString());
|
|
115
|
+
console.log("<i> \x1b[1m\x1b[31m[" + name + "] Path Traversal attack, path: " + url + "\x1b[0m " + new Date().toLocaleString() + " " + rawIp);
|
|
89
116
|
return;
|
|
90
117
|
}
|
|
91
118
|
|
|
@@ -96,7 +123,7 @@ module.exports = function (config) {
|
|
|
96
123
|
// 2025年12月5日 于南京
|
|
97
124
|
let isXHR = headers["sec-fetch-dest"] === "empty";
|
|
98
125
|
|
|
99
|
-
let dotName =
|
|
126
|
+
let dotName = (filePath.match(/\.([^.]+)$/) || [])[1] || "";
|
|
100
127
|
let fileType = mineTypes[dotName]; // 文件类型
|
|
101
128
|
let fileInfo = statSync(filePath);
|
|
102
129
|
|
|
@@ -126,9 +153,9 @@ module.exports = function (config) {
|
|
|
126
153
|
// 2025年12月29日 于南京
|
|
127
154
|
// if (lastModified <= ifModifiedSince) {}
|
|
128
155
|
if (lastModified === ifModifiedSince) {
|
|
129
|
-
response.writeHead(
|
|
156
|
+
response.writeHead(304, responseHeader);
|
|
130
157
|
response.end();
|
|
131
|
-
console.log("<i> \x1b[1m\x1b[32m[" + name + "] Cache File: " + url + "\x1b[0m " + new Date().toLocaleString() + "\x1b[33m\x1b[1m 304" + (isXHR ? " " + request.method : "") + "\x1b[0m");
|
|
158
|
+
console.log("<i> \x1b[1m\x1b[32m[" + name + "] Cache File: " + url + "\x1b[0m " + new Date().toLocaleString() + "\x1b[33m\x1b[1m 304" + (isXHR ? " " + request.method : "") + "\x1b[0m " + rawIp);
|
|
132
159
|
return;
|
|
133
160
|
}
|
|
134
161
|
}
|
|
@@ -164,7 +191,7 @@ module.exports = function (config) {
|
|
|
164
191
|
}
|
|
165
192
|
|
|
166
193
|
sendType = "Read";
|
|
167
|
-
response.writeHead(
|
|
194
|
+
response.writeHead(200, responseHeader);
|
|
168
195
|
response.write(isXHR ? source : resolveImport(source, fileType !== "application/javascript"));
|
|
169
196
|
response.end();
|
|
170
197
|
}
|
|
@@ -175,11 +202,11 @@ module.exports = function (config) {
|
|
|
175
202
|
|
|
176
203
|
responseHeader['Content-Length'] = fileInfo.size
|
|
177
204
|
|
|
178
|
-
response.writeHead(
|
|
205
|
+
response.writeHead(200, responseHeader);
|
|
179
206
|
createReadStream(filePath).pipe(response);
|
|
180
207
|
}
|
|
181
208
|
|
|
182
|
-
console.log("<i> \x1b[1m\x1b[32m[" + name + "] " + sendType + " File: " + url + '\x1b[0m ' + new Date().toLocaleString() + "\x1b[33m\x1b[1m" + (isXHR ? " " + request.method : "") + "\x1b[0m");
|
|
209
|
+
console.log("<i> \x1b[1m\x1b[32m[" + name + "] " + sendType + " File: " + url + '\x1b[0m ' + new Date().toLocaleString() + "\x1b[33m\x1b[1m" + (isXHR ? " " + request.method : "") + "\x1b[0m " + rawIp);
|
|
183
210
|
}
|
|
184
211
|
|
|
185
212
|
// 否则就是404
|
|
@@ -189,7 +216,7 @@ module.exports = function (config) {
|
|
|
189
216
|
'Access-Control-Allow-Origin': '*',
|
|
190
217
|
'Server': 'Powered by ' + name + '@' + version
|
|
191
218
|
});
|
|
192
|
-
response.write(resolve404(filePath, url, website, config.name || "OIPage"));
|
|
219
|
+
response.write(resolve404(filePath, url, website, config.name || "OIPage", rawIp));
|
|
193
220
|
response.end();
|
|
194
221
|
}
|
|
195
222
|
}
|
package/bin/tools/openBrowser.js
CHANGED
|
@@ -2,25 +2,34 @@ const { exec } = require('child_process');
|
|
|
2
2
|
const os = require('os');
|
|
3
3
|
|
|
4
4
|
module.exports = function (url) {
|
|
5
|
-
const platform = os.platform();
|
|
6
|
-
let command;
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
default: // Linux及其他
|
|
16
|
-
command = `xdg-open ${url}`;
|
|
17
|
-
}
|
|
6
|
+
// 防止命令注入
|
|
7
|
+
// 对 URL 进行严格校验(仅允许 http:// 或 https:// 开头,拒绝特殊字符)
|
|
8
|
+
// 2026年8月9日 于南宁
|
|
9
|
+
if (/^http:\/\//.test(url) || /^https:\/\//.test(url)) {
|
|
10
|
+
|
|
11
|
+
const platform = os.platform();
|
|
12
|
+
let command;
|
|
18
13
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
//
|
|
14
|
+
switch (platform) {
|
|
15
|
+
case 'win32': // Windows
|
|
16
|
+
command = `start ${url}`;
|
|
17
|
+
break;
|
|
18
|
+
case 'darwin': // macOS
|
|
19
|
+
command = `open ${url}`;
|
|
20
|
+
break;
|
|
21
|
+
default: // Linux及其他
|
|
22
|
+
command = `xdg-open ${url}`;
|
|
24
23
|
}
|
|
25
|
-
|
|
24
|
+
|
|
25
|
+
exec(command, (error) => {
|
|
26
|
+
if (error) {
|
|
27
|
+
console.error(`无法打开浏览器: ${error}`);
|
|
28
|
+
} else {
|
|
29
|
+
// todo
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
} else {
|
|
33
|
+
console.error('请输入正确的url');
|
|
34
|
+
}
|
|
26
35
|
}
|
package/bin/tools/resolve404.js
CHANGED
|
@@ -3,6 +3,21 @@ const { join } = require("path");
|
|
|
3
3
|
const { formatByte, formatTime } = require("./format");
|
|
4
4
|
const mineTypes = require("../data/mineTypes.json");
|
|
5
5
|
|
|
6
|
+
// HTML 实体转义,防止 XSS
|
|
7
|
+
function escapeHtml(str) {
|
|
8
|
+
return String(str)
|
|
9
|
+
.replace(/&/g, "&")
|
|
10
|
+
.replace(/</g, "<")
|
|
11
|
+
.replace(/>/g, ">")
|
|
12
|
+
.replace(/"/g, """)
|
|
13
|
+
.replace(/'/g, "'");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// URL 路径编码,防止 href 属性注入
|
|
17
|
+
function encodePath(str) {
|
|
18
|
+
return encodeURIComponent(str);
|
|
19
|
+
}
|
|
20
|
+
|
|
6
21
|
const img_folder = "data:image/png;base64," + readFileSync(join(__dirname, "../images/folder.png")).toString('base64');
|
|
7
22
|
const img_file = "data:image/png;base64," + readFileSync(join(__dirname, "../images/file.png")).toString('base64');
|
|
8
23
|
|
|
@@ -12,15 +27,15 @@ const template_404 = readFileSync(join(__dirname, "../template/404.html"), {
|
|
|
12
27
|
.replace("${img_folder}", img_folder)
|
|
13
28
|
.replace("${img_file}", img_file);
|
|
14
29
|
|
|
15
|
-
module.exports = function (filePath, url, website, name) {
|
|
30
|
+
module.exports = function (filePath, url, website, name, rawIp) {
|
|
16
31
|
|
|
17
32
|
let subItems = [];
|
|
18
33
|
|
|
19
34
|
try {
|
|
20
35
|
subItems = readdirSync(filePath);
|
|
21
|
-
console.log("<i> \x1b[1m\x1b[32m[" + name + "-http-server] Read Folder: " + url + '\x1b[0m ' + new Date().toLocaleString());
|
|
36
|
+
console.log("<i> \x1b[1m\x1b[32m[" + name + "-http-server] Read Folder: " + url + '\x1b[0m ' + new Date().toLocaleString() + " " + rawIp);
|
|
22
37
|
} catch (e) {
|
|
23
|
-
console.log("<i> \x1b[1m\x1b[32m[" + name + "-http-server] Read " + (/\/$/.test(url) ? "Folder" : "File") + ": \x1b[35m" + url + ' 404 Not Found\x1b[0m ' + new Date().toLocaleString());
|
|
38
|
+
console.log("<i> \x1b[1m\x1b[32m[" + name + "-http-server] Read " + (/\/$/.test(url) ? "Folder" : "File") + ": \x1b[35m" + url + ' 404 Not Found\x1b[0m ' + new Date().toLocaleString() + " " + rawIp);
|
|
24
39
|
try {
|
|
25
40
|
if (!/\/$/.test(url) || url === "/") {
|
|
26
41
|
filePath = join(filePath, "../");
|
|
@@ -38,7 +53,7 @@ module.exports = function (filePath, url, website, name) {
|
|
|
38
53
|
if (isDirectory) {
|
|
39
54
|
template += `<tr class="folder">
|
|
40
55
|
<th class="name">
|
|
41
|
-
<a href='./${subItems[i]}/'>${subItems[i]}</a>
|
|
56
|
+
<a href='./${encodePath(subItems[i])}/'>${escapeHtml(subItems[i])}</a>
|
|
42
57
|
</th>
|
|
43
58
|
<th>
|
|
44
59
|
${formatTime(statObj.mtime)}
|
|
@@ -50,18 +65,18 @@ module.exports = function (filePath, url, website, name) {
|
|
|
50
65
|
-
|
|
51
66
|
</th>
|
|
52
67
|
<th>
|
|
53
|
-
<a href='./${subItems[i]}/' class="btn">打开</a>
|
|
68
|
+
<a href='./${encodePath(subItems[i])}/' class="btn">打开</a>
|
|
54
69
|
</th>
|
|
55
70
|
</tr>`;
|
|
56
71
|
}
|
|
57
72
|
|
|
58
73
|
// 文件
|
|
59
74
|
else {
|
|
60
|
-
let dotName =
|
|
75
|
+
let dotName = (subItems[i].match(/\.([^.]+)$/) || [])[1] || "";
|
|
61
76
|
|
|
62
77
|
template += `<tr class="file">
|
|
63
78
|
<th class="name">
|
|
64
|
-
<a href='./${subItems[i]}'>${subItems[i]}</a>
|
|
79
|
+
<a href='./${encodePath(subItems[i])}'>${escapeHtml(subItems[i])}</a>
|
|
65
80
|
</th>
|
|
66
81
|
<th>
|
|
67
82
|
${formatTime(statObj.mtime)}
|
|
@@ -73,12 +88,12 @@ module.exports = function (filePath, url, website, name) {
|
|
|
73
88
|
${formatByte(statObj.size)}
|
|
74
89
|
</th>
|
|
75
90
|
<th>
|
|
76
|
-
<a href='./${subItems[i]}' class="btn">访问</a>
|
|
77
|
-
<a href='./${subItems[i]}?download' class="btn" download='${subItems[i]}'>下载</a>
|
|
91
|
+
<a href='./${encodePath(subItems[i])}' class="btn">访问</a>
|
|
92
|
+
<a href='./${encodePath(subItems[i])}?download' class="btn" download='${escapeHtml(subItems[i])}'>下载</a>
|
|
78
93
|
</th>
|
|
79
94
|
</tr>`;
|
|
80
95
|
}
|
|
81
96
|
}
|
|
82
97
|
|
|
83
|
-
return template_404.replace("${website}", website ? '<a class="website-link" href="/@website/index.html">打开应用市场</a>' : '').replace("${current}", filePath).replace("${template}", template);
|
|
98
|
+
return template_404.replace("${website}", website ? '<a class="website-link" href="/@website/index.html">打开应用市场</a>' : '').replace("${current}", escapeHtml(filePath)).replace("${template}", template);
|
|
84
99
|
};
|