From 075f5f12c05a10e2393fda323a5b12582de04737 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Fri, 21 Jan 2011 17:57:40 +0000 Subject: [PATCH] Bug 334649 filter url through uri first for codebase->codesource git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2669 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../main/java/org/eclipse/jetty/policy/entry/GrantEntry.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-policy/src/main/java/org/eclipse/jetty/policy/entry/GrantEntry.java b/jetty-policy/src/main/java/org/eclipse/jetty/policy/entry/GrantEntry.java index 34efb66c13d..3027532e0bd 100644 --- a/jetty-policy/src/main/java/org/eclipse/jetty/policy/entry/GrantEntry.java +++ b/jetty-policy/src/main/java/org/eclipse/jetty/policy/entry/GrantEntry.java @@ -15,6 +15,7 @@ package org.eclipse.jetty.policy.entry; //You may elect to redistribute this code under either of these licenses. //======================================================================== +import java.net.URI; import java.net.URL; import java.security.CodeSource; import java.security.KeyStore; @@ -128,7 +129,7 @@ public class GrantEntry extends AbstractEntry { if ( codesource == null && codebase != null ) { - URL url = new URL( codebase ); + URL url = new URI( codebase ).toURL(); codesource = new CodeSource( url, signerArray ); }