Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Fix failure to open URL with " (double quotes) in browser.
Browse files Browse the repository at this point in the history
Signed-off-by: Arun Prakash Jana <[email protected]>
  • Loading branch information
jarun committed Aug 30, 2015
1 parent 5875809 commit ff58e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class GoogleParser(HTMLParser.HTMLParser):
self.url = self.url[:marker]

index = len(self.results) + 1
self.results.append(Result(index, self.title, self.url, self.text))
self.results.append(Result(index, self.title, unquote(self.url), self.text))
self.handle_starttag = self.main_start
self.handle_data = self.main_data
self.handle_endtag = self.main_end
Expand Down

1 comment on commit ff58e20

@jarun
Copy link
Owner Author

@jarun jarun commented on ff58e20 Apr 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original issue:

$ ./googler -n1 hello world
 1  "Hello, World!" program - Wikipedia, the free encyclopedia 
https://en.wikipedia.org/wiki/%22Hello,_World!%22_program
A "Hello, World!" program is a computer program that outputs "Hello, World!" on a display device, often standard output. Being a very simple program in most ...

Note the %22 instead of ".

Please sign in to comment.