Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjs-bd-common
Overview
Overview
Details
Activity
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
s_guodong
gjjs-bd-common
Commits
f470a500
Commit
f470a500
authored
Apr 02, 2024
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复快照中特殊字符的bug
parent
30b251f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
SnapshotServiceImpl.java
...lliance/mda/runtime/mda/snapshot/SnapshotServiceImpl.java
+29
-0
No files found.
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/mda/snapshot/SnapshotServiceImpl.java
View file @
f470a500
...
@@ -697,9 +697,38 @@ public class SnapshotServiceImpl implements SnapshotService {
...
@@ -697,9 +697,38 @@ public class SnapshotServiceImpl implements SnapshotService {
if
(
value
instanceof
Boolean
)
{
if
(
value
instanceof
Boolean
)
{
value
=
String
.
valueOf
(
value
);
value
=
String
.
valueOf
(
value
);
}
}
value
=
String
.
valueOf
(
value
).
replaceAll
(
"&"
,
"&"
)
.
replaceAll
(
"<"
,
"<"
)
.
replaceAll
(
">"
,
">"
)
.
replaceAll
(
"\""
,
"""
)
.
replaceAll
(
"\'"
,
"'"
);
}
}
return
value
;
return
value
;
}
}
private
void
characters
(
char
[]
ch
,
int
start
,
int
length
)
{
for
(
int
i
=
start
;
i
<
start
+
length
;
i
++)
{
char
c
=
ch
[
i
];
switch
(
c
)
{
case
'&'
:
characters
(
"&"
.
toCharArray
(),
0
,
5
);
break
;
case
'<'
:
characters
(
"<"
.
toCharArray
(),
0
,
4
);
break
;
case
'>'
:
characters
(
">"
.
toCharArray
(),
0
,
4
);
break
;
case
'"'
:
characters
(
"""
.
toCharArray
(),
0
,
6
);
break
;
case
'\''
:
characters
(
"'"
.
toCharArray
(),
0
,
6
);
break
;
}
}
}
}
}
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