Skip to content

Commit

Permalink
This fixes JENKINS-15744 (Whitespaces at the end of input fields lead…
Browse files Browse the repository at this point in the history
…s to bogus file upload).
  • Loading branch information
stolp committed Mar 21, 2015
1 parent 631749a commit 2cc8ccb
Showing 1 changed file with 8 additions and 7 deletions.
Expand Up @@ -57,6 +57,7 @@
import org.apache.commons.httpclient.methods.PutMethod;
import org.apache.commons.httpclient.methods.RequestEntity;
import org.apache.commons.httpclient.methods.StringRequestEntity;
import org.apache.commons.lang.StringUtils;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.types.FileSet;
import org.kohsuke.stapler.AncestorInPath;
Expand Down Expand Up @@ -153,7 +154,7 @@ public String getConfig() {
*/
public void setConfig(final String value) {

config = value;
config = StringUtils.trim(value);
}

/**
Expand All @@ -173,7 +174,7 @@ public String getEnv() {
*/
public void setEnv(final String value) {

env = value;
env = StringUtils.trim(value);
}

/**
Expand All @@ -193,7 +194,7 @@ public String getUrl() {
*/
public void setUrl(final String value) {

url = value;
url = StringUtils.trim(value);
}

/**
Expand All @@ -213,7 +214,7 @@ public String getUsername() {
*/
public void setUsername(final String value) {

username = value;
username = StringUtils.trim(value);
}

/**
Expand All @@ -233,7 +234,7 @@ public String getPassword() {
*/
public void setPassword(final String value) {

password = value;
password = StringUtils.trim(value);
}

/**
Expand All @@ -253,7 +254,7 @@ public String getSut() {
*/
public void setSut(final String value) {

sut = value;
sut = StringUtils.trim(value);
}

/**
Expand All @@ -273,7 +274,7 @@ public String getPathTestResults() {
*/
public void setPathTestResults(final String value) {

pathTestResults = value;
pathTestResults = StringUtils.trim(value);
}

/**
Expand Down

0 comments on commit 2cc8ccb

Please sign in to comment.