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
0c700829
Commit
0c700829
authored
14 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1747 using the right StringEscapeUtils class
SVN: 17823
parent
6bc7fe86
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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/calculator/StandardFunctions.java
+2
-2
2 additions, 2 deletions
...neric/client/web/server/calculator/StandardFunctions.java
with
2 additions
and
2 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/calculator/StandardFunctions.java
+
2
−
2
View file @
0c700829
...
...
@@ -27,11 +27,11 @@ import javax.xml.xpath.XPathExpression;
import
javax.xml.xpath.XPathExpressionException
;
import
javax.xml.xpath.XPathFactory
;
import
org.apache.commons.lang.StringEscapeUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.xml.sax.InputSource
;
import
ch.systemsx.cisd.common.utilities.ExceptionUtils
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.util.lang.StringEscapeUtils
;
/**
* Set of standard functions used in jython expressions.
...
...
@@ -63,7 +63,7 @@ final class StandardFunctions
try
{
XPathExpression
expression
=
XPATH
.
compile
(
xPath
);
String
str
=
StringEscapeUtils
.
unescape
Ht
ml
(
xmlString
);
String
str
=
StringEscapeUtils
.
unescape
X
ml
(
xmlString
);
String
result
=
expression
.
evaluate
(
new
InputSource
(
new
StringReader
(
str
)));
return
result
;
}
catch
(
XPathExpressionException
ex
)
...
...
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