Another class filtering fix
This commit is contained in:
@@ -258,7 +258,8 @@ public class ObjectInputStream extends DataInputStream
|
|||||||
checkName = checkName.substring(1, checkName.length() - 1);
|
checkName = checkName.substring(1, checkName.length() - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean allowed = false;
|
// primitive array descriptors (I, Z, B, S, C, J, F, D) are always safe
|
||||||
|
boolean allowed = (checkName.length() == 1);
|
||||||
for (String prefix : _allowedPrefixes) {
|
for (String prefix : _allowedPrefixes) {
|
||||||
if (checkName.startsWith(prefix)) {
|
if (checkName.startsWith(prefix)) {
|
||||||
allowed = true;
|
allowed = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user