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
This commit is contained in:
Jesse McConnell 2011-01-21 17:57:40 +00:00
parent ff32125106
commit 075f5f12c0
1 changed files with 2 additions and 1 deletions

View File

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