Page MenuHomePhabricator

links in alert e-mails broken for titles with spaces in them
Closed, InvalidPublic

Description

Author: gustavo

Description:
When someone updates a page you're following mediawiki e-mails you an alert that looks like this in Spanish:

<beginning of description>
Estimado/a Carmen,

La página de Venciclopedia «Alirio Ugarte Pelayo» ha sido modificada por el usuario usuario anónimo 201.248.70.39 el
06:54 25 dic 2009.
La versión actual se encuentra en
http://venciclopedia.com/index.php?title=Alirio Ugarte Pelayo

Vaya a
http://venciclopedia.com/index.php?title=Alirio_Ugarte_Pelayo&diff=0&oldid=36933
para ver todos los cambios desde su última visita.

El resumen de edición es: -
<end of description>

In short, dear user, someone modified X page and here are the links to the new page and the history page.

As you can see from the the first link, there are no UNDERSCORES between words. So, any link that has more than one works is broken. If you click in the one received with the example above you go to

http://venciclopedia.com/index.php?title=Alirio

instead of

http://venciclopedia.com/index.php?title=Alirio_Ugarte_Pelayo

The link below, to the history page, has the underscores and works fine.


Version: 1.15.x
Severity: normal
URL: http://venciclopedia.com

Details

Reference
bz21949

Event Timeline

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

pdhanda wrote:

I could not reproduce this on any of the english wikis. :/
-p

gustavo wrote:

This happened to me using Outlook 2007 SP2 running on Vista and on a wiki running Spanish. Gus

This could happen if the enotif_body message has been incorrectly customised on the wiki in question. The $PAGETITLE variable does contain spaces, so if you tried to make a URL with

http://venciclopedia.com/index.php?title=$PAGETITLE

then you'd hit this problem. Since the wiki is public, I can confirm that this is indeed the case:

http://venciclopedia.com/index.php?title=MediaWiki:Enotif_body

The solution is to use $PAGETITLE_URL instead. Marking invalid since it is a local configuration issue, not a MediaWiki bug.