Dominicbm added a comment.

  In T345786#9148039 <https://phabricator.wikimedia.org/T345786#9148039>, 
@JJMC89 wrote:
  
  > `#` is permitted in `Page` object titles since it represents a link to a 
section. Spaces before it get removed since MediaWiki page titles don't have 
trailing whitespace.
  
  That makes sense for Page objects, I didn't really realize that was how it 
works. I changed the title and am restricting this report to FilePages only, 
since it seems like the behavior of Pages is being used for files, in a context 
where it does not make sense. I think the solution is to normalize the 
character to `-` like the MediaWiki API does when creating a FilePage title. A 
FilePage probably shouldn't be permitted to have the character in the title, 
unlike Page, but normalizing is a more graceful way to handle it. Can we repoen 
with that scope?

TASK DETAIL
  https://phabricator.wikimedia.org/T345786

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dominicbm
Cc: JJMC89, Aklapper, pywikibot-bugs-list, Dominicbm, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, 
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to