Comment 3 for bug 751309

Dick Tang (dictcp) wrote :

changed a little bit to avoid problems

                        if(addrStrings.length > 1) {
                                String[] subResourcesCandidates = addrStrings[1].split("&");
                                for(String subResourceCandidate : subResourcesCandidates) {
                                        String subResourceCandidateHead = subResourceCandidate.split("=")[0];
                                        for(WalrusProperties.SubResource subResource : WalrusProperties.SubResource.values()) {
                                                if(subResourceCandidateHead.equals(subResource.toString())) {
                                                        if(addrString.equals(addrStrings[0])) addrString += "?";
                                                        else addrString += "&";
                                                        //if(!addrString.substring(addrString.length()-1).equals("?")) addrString += "&";
                                                        addrString += subResourceCandidate;
                                                }
                                        }
                                }
                        }