Changeset 3ac8e5f5 for router


Ignore:
Timestamp:
Nov 13, 2016 3:11:59 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
efd953f
Parents:
0108c1c
Message:

UPnP: Prevent exception on bad HTTP header (ticket #1480)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/org/cybergarage/http/HTTPHeader.java

    r0108c1c r3ac8e5f5  
    117117        public final static String getValue(String data, String name)
    118118        {
     119                // I2P #1480 avoid IAE
     120                if (data.length() <= 0)
     121                        return "";
    119122                /* Thanks for Stephan Mehlhase (2010-10-26) */
    120123                StringReader strReader = new StringReader(data);
Note: See TracChangeset for help on using the changeset viewer.