jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1693814 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Date Sun, 02 Aug 2015 13:52:42 GMT
Author: fschumacher
Date: Sun Aug  2 13:52:42 2015
New Revision: 1693814

URL: http://svn.apache.org/r1693814
Log:
Bug 58137: Don't escape file protocol urls
Bugzilla Id: 58137

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=1693814&r1=1693813&r2=1693814&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Sun Aug  2 13:52:42 2015
@@ -1356,6 +1356,9 @@ public abstract class HTTPSamplerBase ex
      * @return escaped url
      */
     private String escapeIllegalURLCharacters(String url) {
+        if (url == null || url.toLowerCase().startsWith("file:")) {
+            return url;
+        }
         try {
             String escapedUrl = ConversionUtils.escapeIllegalURLCharacters(url);
             if(log.isDebugEnabled()) {



Mime
View raw message