Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
70d49173
Commit
70d49173
authored
14 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1767 Improved logging.
SVN: 18655
parent
3eafa1c5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/StringHtmlEscapingPointcutAdvisor.java
+3
-3
3 additions, 3 deletions
.../client/web/server/StringHtmlEscapingPointcutAdvisor.java
with
3 additions
and
3 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/StringHtmlEscapingPointcutAdvisor.java
+
3
−
3
View file @
70d49173
...
@@ -137,7 +137,8 @@ public class StringHtmlEscapingPointcutAdvisor extends DefaultPointcutAdvisor
...
@@ -137,7 +137,8 @@ public class StringHtmlEscapingPointcutAdvisor extends DefaultPointcutAdvisor
private
Object
escapeObject
(
MethodInvocation
methodInvocation
,
Object
unescapedResult
)
private
Object
escapeObject
(
MethodInvocation
methodInvocation
,
Object
unescapedResult
)
{
{
Object
result
=
unescapedResult
;
Object
result
=
unescapedResult
;
escapeLog
.
info
(
methodInvocation
.
getMethod
().
getName
()
+
" converting "
// Need to log unescaped result here, since it might be modified below
escapeLog
.
debug
(
methodInvocation
.
getMethod
().
getName
()
+
" converting "
+
unescapedResult
);
+
unescapedResult
);
if
(
unescapedResult
instanceof
String
)
if
(
unescapedResult
instanceof
String
)
{
{
...
@@ -154,8 +155,7 @@ public class StringHtmlEscapingPointcutAdvisor extends DefaultPointcutAdvisor
...
@@ -154,8 +155,7 @@ public class StringHtmlEscapingPointcutAdvisor extends DefaultPointcutAdvisor
// Escape the result objects
// Escape the result objects
ReflectingStringEscaper
.
escapeDeep
(
unescapedResult
);
ReflectingStringEscaper
.
escapeDeep
(
unescapedResult
);
}
}
escapeLog
.
info
(
methodInvocation
.
getMethod
().
getName
()
+
" converted to "
escapeLog
.
debug
(
methodInvocation
.
getMethod
().
getName
()
+
" converted to "
+
result
);
+
unescapedResult
);
return
result
;
return
result
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment