Page MenuHomePhabricator

Searching for a term with # in it is not handled gracefully
Closed, ResolvedPublic

Description

Author: flieslikeabrick

Description:
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


Version: 1.11.x
Severity: minor

Details

Reference
bz11872

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:00 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz11872.
bzimport added a subscriber: Unknown Object (MLST).

flieslikeabrick wrote:

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 #.

Created attachment 5119
Proposed patch

Attached: