From fce616db232bf4d98662a961c6884114c6f12407 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 30 Oct 2005 13:47:42 +0000 Subject: [PATCH] security limits for network picture git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1006 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/NetworkPicture.java | 5 +++++ 1 file changed, 5 insertions(+) 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); }