Changeset 0e9ceba


Ignore:
Timestamp:
Aug 5, 2014 9:26:48 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b0f8d84a
Parents:
fe3059f
Message:
  • i2ptunnel: Fix filtering of custom options
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/EditBean.java

    rfe3059f r0e9ceba  
    1818import net.i2p.crypto.SigType;
    1919import net.i2p.data.Base64;
     20import net.i2p.data.DataHelper;
    2021import net.i2p.data.Destination;
    2122import net.i2p.data.PrivateKeyFile;
     
    453454                buf.append(e.getKey()).append('=').append(e.getValue());
    454455            }
    455             return buf.toString();
     456            return DataHelper.escapeHTML(buf.toString());
    456457        } else {
    457458            return "";
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/IndexBean.java

    rfe3059f r0e9ceba  
    729729    }
    730730    /** what I2P session overrides should be used */
    731     public void setCustomOptions(String customOptions) {
     731    public void setNofilter_customOptions(String customOptions) {
    732732        _customOptions = (customOptions != null ? customOptions.trim() : null);
    733733    }
  • apps/i2ptunnel/jsp/editClient.jsp

    rfe3059f r0e9ceba  
    588588                    <%=intl._("Custom options")%>(<span class="accessKey">u</span>):
    589589                </label>
    590                 <input type="text" id="customOptions" name="customOptions" size="60" title="Custom Options" value="<%=editBean.getCustomOptions(curTunnel)%>" class="freetext" />               
     590                <input type="text" id="customOptions" name="nofilter_customOptions" size="60" title="Custom Options" value="<%=editBean.getCustomOptions(curTunnel)%>" class="freetext" />               
    591591            </div>
    592592           
  • apps/i2ptunnel/jsp/editServer.jsp

    rfe3059f r0e9ceba  
    612612                    <%=intl._("Custom options")%>(<span class="accessKey">u</span>):
    613613                </label>
    614                 <input type="text" id="customOptions" name="customOptions" size="60" title="Custom Options" value="<%=editBean.getCustomOptions(curTunnel)%>" class="freetext" />               
     614                <input type="text" id="customOptions" name="nofilter_customOptions" size="60" title="Custom Options" value="<%=editBean.getCustomOptions(curTunnel)%>" class="freetext" />               
    615615            </div>
    616616           
  • router/java/src/net/i2p/router/RouterVersion.java

    rfe3059f r0e9ceba  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 3;
     21    public final static long BUILD = 4;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.