After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 318421 - Cant perform searches with firefox using a query with spaces
Cant perform searches with firefox using a query with spaces
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
Git master
Other Linux
: Normal minor
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2005-10-10 07:55 UTC by Joao Inacio
Modified: 2005-10-10 18:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
replacing spaces with '+' in the query seems to work (357 bytes, patch)
2005-10-10 07:56 UTC, Joao Inacio
none Details | Review

Description Joao Inacio 2005-10-10 07:55:27 UTC
Trying to enter a query with spaces ("some words") and selecting any web search
engines (im my case, imported from firefox) does not open any browser window.

running in window mode yelds:
"Error: Failed to send command: 500 command not parsable:
openURL(http://www.goog le.com/search?q=some"

Expected:
 browser should open search engine and search "some words"

Possible fix:
 replace spaces with "+"
Comment 1 Joao Inacio 2005-10-10 07:56:50 UTC
Created attachment 53275 [details] [review]
replacing spaces with '+' in the query seems to work
Comment 2 Raphael Slinckx 2005-10-10 17:06:17 UTC
Can you try CVS ?

The + replacement isn't enough, you must use cgi.encode
Comment 3 Joao Inacio 2005-10-10 17:51:05 UTC
cvs still not working for me

a google search on "some words" yelds the same error.

(the full url string is: 'http://www.google.com/search?q=some
words&sourceid=mozilla-search'

cgi.escape has no effect on spaces, maybe use urllib.quote_plus(text) instead?
(works for me)
Comment 4 Raphael Slinckx 2005-10-10 18:15:35 UTC
Ok, my bad :)

Fixed in CVS