aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/SecurityDesc.java
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2012-06-05 10:11:09 -0400
committerDeepak Bhole <[email protected]>2012-06-05 10:11:09 -0400
commit5319aa17959526c2848fb091cf0fe52b34b54334 (patch)
tree07cc0aba0105bb8b0615a325e1162fa195d0aa9a /netx/net/sourceforge/jnlp/SecurityDesc.java
parente60a2847c802c9a13e8171c9f7a05aad3b1d0da3 (diff)
PR861: Allow loading from non codebase hosts. Allow code to connect to hosting server
Diffstat (limited to 'netx/net/sourceforge/jnlp/SecurityDesc.java')
-rw-r--r--netx/net/sourceforge/jnlp/SecurityDesc.java2
1 files changed, 1 insertions, 1 deletions
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"));