Skip to content

Commit 082ce33

Browse files
committed
properly escape search term on issues.search
1 parent a4ae18f commit 082ce33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ class IssuesEndpoint(BaseEndpoint):
458458
@with_temporary_mappings({'user': None})
459459
def search(self, user, repo, state, search_term):
460460
"""Search the issues for the given repo for the given state and search term."""
461-
return self._parsed('/'.join(['issues', 'search', user, repo, state, search_term]))
461+
return self._parsed('/'.join(['issues', 'search', user, repo, state, urllib.quote_plus(search_term)]))
462462

463463
@with_temporary_mappings({'user': None})
464464
def list(self, user, repo, state='open'):

0 commit comments

Comments
 (0)