security limits for network picture

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1006 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent 1aa707d357
commit fce616db23

@ -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);
}

Loading…
Cancel
Save