Page MenuHomePhabricator

Advanced search form contains <input type="hidden" name="profile" value="advanced"> twice
Closed, ResolvedPublic

Description

Advanced search form contains <input type="hidden" name="profile" value="advanced"> twice. This is harmless, but silly.

https://en.wikipedia.org/w/index.php?title=Special:Search&profile=advanced&fulltext=1&search=Wikipedia

pasted_file (525×901 px, 100 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
debt triaged this task as Low priority.Mar 2 2017, 11:11 PM
debt moved this task from needs triage to This Quarter on the Discovery-Search board.
debt subscribed.

We think this is fairly easy to do. :)

This is probably somewhere in MediaWiki\Widget\Search\SearchFormWidget. This should be easier to figure out now since the refactor put this code into a more compact space.

Change 341104 had a related patch set uploaded (by eddie):
[mediawiki/core] Remove redundant input from search form

https://gerrit.wikimedia.org/r/341104

Change 341104 merged by jenkins-bot:
[mediawiki/core] Remove redundant input from search form

https://gerrit.wikimedia.org/r/341104