diff options
author | slewis | 2007-08-21 05:29:25 +0000 |
---|---|---|
committer | slewis | 2007-08-21 05:29:25 +0000 |
commit | 5f14be5a8cac6a64c14f7c3f177ac0b505f77df7 (patch) | |
tree | 4200b69a5404343ed5ffa2321827d05fd5e171b0 /providers | |
parent | 32439bccf728a2c3e7c28e166939fdb97ab36c53 (diff) | |
download | org.eclipse.ecf-5f14be5a8cac6a64c14f7c3f177ac0b505f77df7.tar.gz org.eclipse.ecf-5f14be5a8cac6a64c14f7c3f177ac0b505f77df7.tar.xz org.eclipse.ecf-5f14be5a8cac6a64c14f7c3f177ac0b505f77df7.zip |
Patch from https://bugs.eclipse.org/bugs/show_bug.cgi?id=199309 tested and applied
Diffstat (limited to 'providers')
-rw-r--r-- | providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/hyperlink/IRCHyperlink.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/hyperlink/IRCHyperlink.java b/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/hyperlink/IRCHyperlink.java index 7a326d6e8..8dd940a46 100644 --- a/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/hyperlink/IRCHyperlink.java +++ b/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/hyperlink/IRCHyperlink.java @@ -44,8 +44,15 @@ public class IRCHyperlink extends AbstractURLHyperlink { protected IConnectWizard createConnectWizard() { URI uri = getURI(); String authAndPath = uri.getSchemeSpecificPart(); - while (authAndPath.startsWith("/")) authAndPath = authAndPath.substring(1); + while (authAndPath.startsWith("/")) authAndPath = authAndPath.substring(1); //$NON-NLS-1$ + String fragment = uri.getFragment(); + if (fragment != null) { + StringBuffer buf = new StringBuffer(authAndPath); + buf.append("#").append(fragment); //$NON-NLS-1$ + authAndPath = buf.toString(); + } + return new IRCConnectWizard(authAndPath); } |