mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 6694: trim excess fat from passed in parameters
status 6694: resolved fixed
This commit is contained in:
parent
335e81cc52
commit
70241d78ec
@ -74,11 +74,11 @@ public class CreatePortForwardingRuleCmd extends BaseAsyncCreateCmd implements
|
||||
|
||||
@Override
|
||||
public String getProtocol() {
|
||||
return protocol;
|
||||
return protocol.trim();
|
||||
}
|
||||
|
||||
public String getPublicPort() {
|
||||
return publicPort;
|
||||
return publicPort.trim();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -133,17 +133,17 @@ public class CreatePortForwardingRuleCmd extends BaseAsyncCreateCmd implements
|
||||
|
||||
@Override
|
||||
public Ip getSourceIpAddress() {
|
||||
return new Ip(ipAddress);
|
||||
return new Ip(ipAddress.trim());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSourcePortStart() {
|
||||
return Integer.parseInt(publicPort);
|
||||
return Integer.parseInt(publicPort.trim());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSourcePortEnd() {
|
||||
return Integer.parseInt(publicPort);
|
||||
return Integer.parseInt(publicPort.trim());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user