Changeset 6ed17c1


Ignore:
Timestamp:
Jan 24, 2009 11:42:31 PM (12 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6235b49
Parents:
ae0bcc49
Message:

prevent null spoofhost

Location:
apps/i2ptunnel
Files:
2 edited

Legend:

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

    rae0bcc49 r6ed17c1  
    4040    public String getTargetHost(int tunnel) {
    4141        TunnelController tun = getController(tunnel);
    42         if (tun != null)
     42        if (tun != null && tun.getTargetHost() != null)
    4343            return tun.getTargetHost();
    4444        else
     
    5454    public String getSpoofedHost(int tunnel) {
    5555        TunnelController tun = getController(tunnel);
    56         if (tun != null)
     56        if (tun != null && tun.getSpoofedHost() != null)
    5757            return tun.getSpoofedHost();
    5858        else
  • apps/i2ptunnel/jsp/editServer.jsp

    rae0bcc49 r6ed17c1  
    111111                    <span class="accessKey">W</span>ebsite name:
    112112                </label>
    113                 <input type="text" size="20" id="spoofedHost" name="spoofedHost" title="Website Host Name" value="<%=editBean.getSpoofedHost(curTunnel)%>" class="freetext" />               
     113                <input type="text" size="20" id="targetHost" name="spoofedHost" title="Website Host Name" value="<%=editBean.getSpoofedHost(curTunnel)%>" class="freetext" />               
     114                <span class="comment">(leave blank for outproxies)</span>
    114115            </div>
    115116            <% }
Note: See TracChangeset for help on using the changeset viewer.