Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

security limits for network picture

orbiterfce616db232b
diff --git a/htroot/NetworkPicture.java b/htroot/NetworkPicture.java
index 9a8f6c4b8..402af270b 100644
--- a/htroot/NetworkPicture.java
+++ b/htroot/NetworkPicture.java
@@ -72,6 +72,11 @@ public class NetworkPicture {
maxCount = post.getInt("max", 1000);
}
+ if (width > 1920) width = 1920;
+ if (height > 1200) height = 1200;
+ if (passiveLimit > 500) passiveLimit = 500;
+ if (potentialLimit > 500) potentialLimit = 500;
+ if (maxCount > 1000) maxCount = 1000;
return plasmaGrafics.getNetworkPicture(10000, width, height, passiveLimit, potentialLimit, maxCount).toImage(true);
}