Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
bbe17532
Commit
bbe17532
authored
Jun 09, 2021
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix(Core/JSP_JS):修复cmd asenv不生效Bug
parent
384da076
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
index.js
source/core/jsp_js/index.js
+2
-2
command.js
source/core/jsp_js/template/command.js
+2
-2
No files found.
source/core/jsp_js/index.js
View file @
bbe17532
...
@@ -96,8 +96,8 @@ class JSP_JS extends Base {
...
@@ -96,8 +96,8 @@ class JSP_JS extends Base {
importPackage(Packages.java.io);
importPackage(Packages.java.io);
var output = new StringBuffer("");
var output = new StringBuffer("");
var cs = "
${
jspencode
}
";
var cs = "
${
jspencode
}
";
var tag_s = "
${
tag_s
}
";
var tag_s = "
${
tag_s
.
substr
(
0
,
tag_s
.
length
/
2
)}
"+"
${
tag_s
.
substr
(
tag_s
.
length
/
2
)
}
";
var tag_e = "
${
tag_e
}
";
var tag_e = "
${
tag_e
.
substr
(
0
,
tag_e
.
length
/
2
)}
"+"
${
tag_e
.
substr
(
tag_e
.
length
/
2
)
}
";
try {
try {
response.setContentType("text/html");
response.setContentType("text/html");
request.setCharacterEncoding(cs);
request.setCharacterEncoding(cs);
...
...
source/core/jsp_js/template/command.js
View file @
bbe17532
...
@@ -11,9 +11,9 @@ module.exports = (arg1, arg2, arg3) => ({
...
@@ -11,9 +11,9 @@ module.exports = (arg1, arg2, arg3) => ({
var s = [cmdPath, split, command];
var s = [cmdPath, split, command];
var readonlyenv = System.getenv();
var readonlyenv = System.getenv();
var cmdenv = new HashMap(readonlyenv);
var cmdenv = new HashMap(readonlyenv);
var envs = envstr.split("\\
\\|\\\\|\\\\|asline\\\\|\\\\|\\
\\|");
var envs = envstr.split("\\
|\\|\\|asline\\|\\|
\\|");
for (var i = 0; i < envs.length; i++) {
for (var i = 0; i < envs.length; i++) {
var es = envs[i].split("\\
\\|\\\\|\\\\|askey\\\\|\\\\|\\
\\|");
var es = envs[i].split("\\
|\\|\\|askey\\|\\|
\\|");
if (es.length == 2) {
if (es.length == 2) {
cmdenv.put(es[0], es[1]);
cmdenv.put(es[0], es[1]);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment