jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1618606 - /jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
Date Mon, 18 Aug 2014 13:47:54 GMT
Author: sebb
Date: Mon Aug 18 13:47:54 2014
New Revision: 1618606

URL: http://svn.apache.org/r1618606
Log:
Update to use non-deprecated method

Modified:
    jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java

Modified: jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java?rev=1618606&r1=1618605&r2=1618606&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
(original)
+++ jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
Mon Aug 18 13:47:54 2014
@@ -801,7 +801,7 @@ public class LDAPExtSampler extends Abst
                 final String countLimit = getCountlim();
 
                 res.setSamplerData("Search with filter " + searchFilter);
-                xmlBuffer.tag("searchfilter", StringEscapeUtils.escapeXml(searchFilter));
// $NON-NLS-1$
+                xmlBuffer.tag("searchfilter", StringEscapeUtils.escapeXml10(searchFilter));
// $NON-NLS-1$
                 xmlBuffer.tag("baseobj",getRootdn()); // $NON-NLS-1$
                 xmlBuffer.tag("searchbase",searchBase);// $NON-NLS-1$
                 xmlBuffer.tag("scope" , scopeStr); // $NON-NLS-1$
@@ -1044,19 +1044,19 @@ public class LDAPExtSampler extends Abst
     {
         if (value instanceof String) {
             // assume it's senstive data
-            return StringEscapeUtils.escapeXml((String)value);
+            return StringEscapeUtils.escapeXml10((String)value);
         }
         if (value instanceof byte[]) {
             try
             {
-                return StringEscapeUtils.escapeXml(new String((byte[])value, "UTF-8")); //$NON-NLS-1$
+                return StringEscapeUtils.escapeXml10(new String((byte[])value, "UTF-8"));
//$NON-NLS-1$
             }
             catch (UnsupportedEncodingException e)
             {
                 log.error("this can't happen: UTF-8 character encoding not supported", e);
             }
         }
-        return StringEscapeUtils.escapeXml(value.toString());
+        return StringEscapeUtils.escapeXml10(value.toString());
     }
 
     @Override



Mime
View raw message