* i2ptunnel: Fix filtering of custom options

This commit is contained in:
zzz
2014-08-05 21:26:48 +00:00
parent fe3059f0ab
commit 0e9ceba057
5 changed files with 6 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ import java.util.TreeMap;
import net.i2p.client.I2PClient;
import net.i2p.crypto.SigType;
import net.i2p.data.Base64;
import net.i2p.data.DataHelper;
import net.i2p.data.Destination;
import net.i2p.data.PrivateKeyFile;
import net.i2p.data.Signature;
@@ -452,7 +453,7 @@ public class EditBean extends IndexBean {
space = true;
buf.append(e.getKey()).append('=').append(e.getValue());
}
return buf.toString();
return DataHelper.escapeHTML(buf.toString());
} else {
return "";
}

View File

@@ -728,7 +728,7 @@ public class IndexBean {
_tunnelBackupQuantity = (tunnelBackupQuantity != null ? tunnelBackupQuantity.trim() : null);
}
/** what I2P session overrides should be used */
public void setCustomOptions(String customOptions) {
public void setNofilter_customOptions(String customOptions) {
_customOptions = (customOptions != null ? customOptions.trim() : null);
}
/** what HTTP outproxies should be used (httpclient specific) */