Last modified: 2010-07-04 17:19:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11872 - Searching for a term with # in it is not handled gracefully
Searching for a term with # in it is not handled gracefully
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2007-11-05 04:15 UTC by Ryan Rawdon
Modified: 2010-07-04 17:19 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

Proposed patch (1.94 KB, patch)
2008-08-05 20:52 UTC, Max Semenik

Description Ryan Rawdon 2007-11-05 04:15:49 UTC
When searching on any Mediawiki installation for a search term with # in it, the results page does not handle this special name gracefully.  It offers to let the user create the page, but the link is broken and doesn't even take them to a form to create the page.  This special search term seems to be treated differently than if you searched for, for example "foo>bar."  "foo#bar" results in the case I am talking about.

Any Mediawiki installation seems to have this problem, including Wikipedia's is slightly different.

According to the naming conventions/technical limitations, this shouldn't be allowed and should be handled just as any of the other special characters are
Comment 1 Ryan Rawdon 2007-11-05 04:24:28 UTC
I should also mention that if this is the intended behavior, then there is definitely a bug when trying to search for "#foo"

The results page gives a "Create page" link, but it isn't handled properly for the case where the search term starts with #.
Comment 2 Max Semenik 2008-08-05 20:52:57 UTC
Created attachment 5119 [details]
Proposed patch
Comment 3 Max Semenik 2009-09-02 15:27:55 UTC
Appears to be fixed.

Note You need to log in before you can comment on or make changes to this bug.