Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2013-10-30 10:29:05 +0000
committerMatthias Sohn2014-02-13 23:20:18 +0000
commitce4b86e14088f51faa1a8d3028d5fb52089d4a19 (patch)
tree773b246cd2bd9d46e3fa11ea7d8d951c5f7c8e23
parentb3f72f1120a06c47b296ad307cc028661ef16588 (diff)
downloadegit-github-ce4b86e14088f51faa1a8d3028d5fb52089d4a19.tar.gz
egit-github-ce4b86e14088f51faa1a8d3028d5fb52089d4a19.tar.xz
egit-github-ce4b86e14088f51faa1a8d3028d5fb52089d4a19.zip
Remove duplicate URL encoding of repository search query
* URL encoding is done in repository service already * therefore not necessary in wizard page Bug: 420666 Change-Id: I10a2efc5a1423db48300c54a19694368b87ea976 Signed-off-by: Michael Keppler <michael.keppler@gmx.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/RepositorySearchWizardPage.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/RepositorySearchWizardPage.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/RepositorySearchWizardPage.java
index 3c71b7ad..04e04905 100644
--- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/RepositorySearchWizardPage.java
+++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/RepositorySearchWizardPage.java
@@ -247,13 +247,8 @@ public class RepositorySearchWizardPage extends WizardPage implements
.format(Messages.RepositorySearchWizardPage_Searching,
text), 10);
try {
- StringBuilder query = new StringBuilder();
- for (String term : text.split("\n")) //$NON-NLS-1$
- query.append(UrlUtils.encode(term.trim())).append(
- '+');
- query.deleteCharAt(query.length() - 1);
final List<SearchRepository> repositories = repositoryService
- .searchRepositories(query.toString(), language);
+ .searchRepositories(text.trim(), language);
PlatformUI.getWorkbench().getDisplay()
.syncExec(new Runnable() {

Back to the top