Page MenuHomePhabricator

CreateClass cannot save and returns Bad title when there is a non-ASCII character in the special page name
Closed, ResolvedPublic

Description

In a wiki where $wgContentLanguage is "fr", when I click on Créer (Create) in CreateClass, I get an error "Bad title".

Event Timeline

Seb35 created this task.Jun 12 2016, 2:48 PM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptJun 12 2016, 2:48 PM
Seb35 triaged this task as Normal priority.Jun 12 2016, 2:48 PM
Seb35 added a comment.Jun 12 2016, 2:50 PM

In the form, the hidden field "title" is "Sp%C3%A9cial:CreateClass". When I remove wfUrlEncode in includes/SF_Utils.php function titleURLString, it works (tested with Firefox 47 and Opera 12.16).

Change 293968 had a related patch set uploaded (by Seb35):
CreateClass cannot save and returns Bad title when there is a non-ASCII character in the special page name

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

Change 293968 merged by jenkins-bot:
CreateClass cannot save and returns Bad title when there is a non-ASCII character in the special page name

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

Yaron_Koren closed this task as Resolved.Jun 13 2016, 2:10 PM