Kaynağa Gözat

Channel Parsing now includes query bits. Fixes issue 3213

Change-Id: I4f78dff4375396396878dd0b9fd81960b495f7d9
Reviewed-on: http://gerrit.dmdirc.com/127
Tested-by: Shane Mc Cormack <shane@dmdirc.com>
Reviewed-by: Gregory Holmes <greboid@dmdirc.com>
tags/0.6.3
Shane Mc Cormack 14 yıl önce
ebeveyn
işleme
44f40e3049
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2
    1
      src/com/dmdirc/parser/irc/Process001.java

+ 2
- 1
src/com/dmdirc/parser/irc/Process001.java Dosyayı Görüntüle

73
         final URI uri = myParser.server.getURI();
73
         final URI uri = myParser.server.getURI();
74
         if (uri != null) {
74
         if (uri != null) {
75
             String channelString = uri.getPath();
75
             String channelString = uri.getPath();
76
-            if (!uri.getFragment().isEmpty()) { channelString += "#" + uri.getFragment(); }
76
+            if (uri.getRawQuery() != null && !uri.getRawQuery().isEmpty()) { channelString += "?" + uri.getRawQuery(); }
77
+            if (uri.getRawFragment() != null && !uri.getRawFragment().isEmpty()) { channelString += "#" + uri.getRawFragment(); }
77
             if (channelString.startsWith("/")) { channelString = channelString.substring(1); }
78
             if (channelString.startsWith("/")) { channelString = channelString.substring(1); }
78
             
79
             
79
             myParser.joinChannel(channelString, true);
80
             myParser.joinChannel(channelString, true);

Loading…
İptal
Kaydet