Mercurial > hg > release > icedtea-web-1.5
changeset 1049:38218c5268d4
UnsignedAppletTrustConfirmation.java (stripFileImp) fixed typo on variable of normlaized to normalized
author | Jiri Vanek <jvanek@redhat.com> |
---|---|
date | Thu, 10 Sep 2015 12:17:47 +0200 |
parents | 96da3c04a80c |
children | cd2bcad72cd5 |
files | ChangeLog netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java |
diffstat | 2 files changed, 12 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Sep 08 17:24:26 2015 +0200 +++ b/ChangeLog Thu Sep 10 12:17:47 2015 +0200 @@ -1,3 +1,8 @@ +2015-09-10 Jiri Vanek <jvanek@redhat.com> + + * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java: + (stripFileImp) fixed typo on variable of normlaized to normalized + 2015-09-03 Jiri Vanek <jvanek@redhat.com> * NEWS: mentioned fixes for RH1233697, RH1233667 and reuse of MissingALACAdialog
--- a/netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java Tue Sep 08 17:24:26 2015 +0200 +++ b/netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java Thu Sep 10 12:17:47 2015 +0200 @@ -271,18 +271,18 @@ private static String stripFileImp(URL documentbase) { try { - String normlaized = UrlUtils.normalizeUrlAndStripParams(documentbase).toExternalForm().trim(); - if (normlaized.endsWith("/") || normlaized.endsWith("\\")) { - return normlaized; + String normalized = UrlUtils.normalizeUrlAndStripParams(documentbase).toExternalForm().trim(); + if (normalized.endsWith("/") || normalized.endsWith("\\")) { + return normalized; } - URL middleway = new URL(normlaized); + URL middleway = new URL(normalized); String file = middleway.getFile(); int i = Math.max(file.lastIndexOf('/'), file.lastIndexOf('\\')); if (i<0){ - return normlaized; + return normalized; } String parent = file.substring(0, i+1); - String stripped = normlaized.replace(file, parent); + String stripped = normalized.replace(file, parent); return stripped; } catch (Exception ex) { OutputController.getLogger().log(ex); @@ -307,4 +307,4 @@ return s + "/"; } -} \ No newline at end of file +}