Skip to content

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

Fix for http://www.yacy-forum.de/viewtopic.php?p=16964#16964

rramthun4ceea34187bb
diff --git a/htroot/NetworkPicture.java b/htroot/NetworkPicture.java
index c9beebbfe..48c347d7d 100644
--- a/htroot/NetworkPicture.java
+++ b/htroot/NetworkPicture.java
@@ -70,7 +70,10 @@ public class NetworkPicture {
maxCount = post.getInt("max", 1000);
}
+ //too small values lead to an error, too big to huge CPU/memory consumption, resulting in possible DOS.
+ if (width < 320 ) width = 320;
if (width > 1920) width = 1920;
+ if (height < 240) height = 240;
if (height > 1200) height = 1200;
if (passiveLimit > 1000000) passiveLimit = 1000000;
if (potentialLimit > 1000000) potentialLimit = 1000000;
diff --git a/locales/de.lng b/locales/de.lng
index 718ba757b..bb2cceb76 100644
--- a/locales/de.lng
+++ b/locales/de.lng
@@ -1200,9 +1200,9 @@ Changes will take effect immediately.==&Auml;nderungen sind sofort wirksam.
#File: Settings_PortForwarding.inc
#check for logical mistakes, unsure about some translations
Port Forwarding==Port Weiterleitung
-You can use a remote server running a ssh demon to forward your server/proxy port.==Sie k&ouml;nnen einen Remote Server mit einem ssh demon nutzen, um Ihrem Server/Proxy Port weiterzuleiten.
-This is useful if you want to tunnel throug a NAT/router.==Dies ist n&uuml;tzlich, wenn Sie durch einen NAT/Router tunneln wollen.
-Alternatively, you can simply set a virtual server port on your NAT/Server to enable connections from outside.==Alternativ k&ouml;nnen Sie einfach einen virtuellen Server in Ihrem NAT/Router einstellen, um Verbindungen von Au&szlig;erhalb zu erm&ouml;glichen.
+You can use a remote server running a ssh demon to forward your server/proxy port.==Sie k&ouml;nnen einen Remote Server mit einem SSH-Daemon nutzen, um Ihrem Server/Proxy Port weiterzuleiten.
+This is useful if you want to tunnel throug a NAT/router.==Dies ist n&uuml;tzlich, wenn Sie durch einen Router/NAT tunneln wollen.
+Alternatively, you can simply set a virtual server port on your NAT/Server to enable connections from outside.==Alternativ k&ouml;nnen Sie einfach einen virtuellen Server in Ihrem Router/NAT einstellen, um Verbindungen von au&szlig;en zu erm&ouml;glichen.
Enable&nbsp;port&nbsp;forwarding:==Aktiviere Port Weiterleitung:
Enabling disabling port forwarding via secure channel.==Aktivieren/Deaktivieren von Port Weiterleitung &uuml;ber sicheren Kanal.
Forwarding&nbsp;via&nbsp;proxy:==Weiterleitung &uuml;ber Proxy: