From 5319aa17959526c2848fb091cf0fe52b34b54334 Mon Sep 17 00:00:00 2001 From: Deepak Bhole Date: Tue, 5 Jun 2012 10:11:09 -0400 Subject: PR861: Allow loading from non codebase hosts. Allow code to connect to hosting server --- netx/net/sourceforge/jnlp/SecurityDesc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netx/net/sourceforge/jnlp/SecurityDesc.java') diff --git a/netx/net/sourceforge/jnlp/SecurityDesc.java b/netx/net/sourceforge/jnlp/SecurityDesc.java index 9455c9a..197fd3d 100644 --- a/netx/net/sourceforge/jnlp/SecurityDesc.java +++ b/netx/net/sourceforge/jnlp/SecurityDesc.java @@ -238,7 +238,7 @@ public class SecurityDesc { for (int i = 0; i < jnlpRIAPermissions.length; i++) permissions.add(jnlpRIAPermissions[i]); - if (downloadHost != null) + if (downloadHost != null && downloadHost.length() > 0) permissions.add(new SocketPermission(downloadHost, "connect, accept")); -- cgit v1.2.3