mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-28 19:09:10 +00:00
367638 throw exception for excess form keys
This commit is contained in:
parent
57849a905f
commit
979d6dbbf9
@ -224,10 +224,7 @@ public class UrlEncoded extends MultiMap implements Cloneable
|
||||
key = null;
|
||||
value=null;
|
||||
if (maxKeys>0 && map.size()>maxKeys)
|
||||
{
|
||||
LOG.warn("maxFormKeys limit exceeded keys>{}",maxKeys);
|
||||
return;
|
||||
}
|
||||
throw new IllegalStateException("Form too many keys");
|
||||
break;
|
||||
case '=':
|
||||
if (key!=null)
|
||||
@ -396,10 +393,7 @@ public class UrlEncoded extends MultiMap implements Cloneable
|
||||
key = null;
|
||||
value=null;
|
||||
if (maxKeys>0 && map.size()>maxKeys)
|
||||
{
|
||||
LOG.warn("maxFormKeys limit exceeded keys>{}",maxKeys);
|
||||
return;
|
||||
}
|
||||
throw new IllegalStateException("Form too many keys");
|
||||
break;
|
||||
|
||||
case '=':
|
||||
@ -483,10 +477,7 @@ public class UrlEncoded extends MultiMap implements Cloneable
|
||||
key = null;
|
||||
value=null;
|
||||
if (maxKeys>0 && map.size()>maxKeys)
|
||||
{
|
||||
LOG.warn("maxFormKeys limit exceeded keys>{}",maxKeys);
|
||||
return;
|
||||
}
|
||||
throw new IllegalStateException("Form too many keys");
|
||||
break;
|
||||
|
||||
case '=':
|
||||
@ -611,6 +602,8 @@ public class UrlEncoded extends MultiMap implements Cloneable
|
||||
}
|
||||
key = null;
|
||||
value=null;
|
||||
if (maxKeys>0 && map.size()>maxKeys)
|
||||
throw new IllegalStateException("Form too many keys");
|
||||
break;
|
||||
case '=':
|
||||
if (key!=null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user