Page MenuHomePhabricator

Target name parameter defaults to "Object" in delete-and-move and sanitizer.php causes a warning
Open, LowPublicFeature

Description

Author: crochet.david

Description:
Hello

In a private mediawiki a renaming output this (take from the source page):

<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, object given in <b>/home/users/wikimedia/sousdomaines/membres/includes/Sanitizer.php</b> on line <b>729</b><br />

with a sysop level user account, the warning is output, with this in plus (in french):

  • first line : « L’article de destination « Object » existe déjà. Voulez-vous le supprimer pour permettre le renommage ? » Object is rendering instead of a link to the destination page
  • The field in right « Nouveau titre » is empty ; normaly, it have in it the name of the page
  • The check-box « Oui, j’accepte de supprimer la page de destination pour permettre le renommage. » in uncheck, it's normal because it's the confirmation page

with a confirm account, the warning is output, no error in apparence, only the warning.

The mediawiki :
MediaWiki 1.13.0 (r40305)
PHP 5.1.4-Debian-0.1~sarge1 (apache2handler)
MySQL 4.1.11-Debian_4sarge2-log


Version: 1.13.x
Severity: enhancement

Details

Reference
bz15421

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:23 PM
bzimport set Reference to bz15421.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

with this in plus (in
french):

  • first line : « L’article de destination « Object » existe déjà.

Voulez-vous le supprimer pour permettre le renommage ? » Object is rendering
instead of a link to the destination page

This is [[MediaWiki:Delete and move text]]; $1 seems to default to "Object" instead of the target page (to be deleted to make way for move)

  • The field in right « Nouveau titre » is empty ; normaly, it have in it the

name of the page

Nouveau titre = [[MediaWiki:Newtitle]]; the field aside it should also contain the target name.

Can you test if r41343 fixes it?

svn up to r41355

It doesn't, sorry.

crochet.david wrote:

I change the version, is not the 1.13.0 but the 1.13.1

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM