[Mediawiki-l] Link for "E-mail new password" breaks when username has a space in it
Jan Steinman
Jan at Bytesmiths.com
Sat May 30 09:09:19 UTC 2009
> From: Q <overlordq at gmail.com>
>
> Jan Steinman wrote:
>> Are there others out there who are successfully using a "clickback"
>> link in MediaWiki:passwordremindertext who would like to share their
>> secret?
>
> Try using the {{urlencode}} magic word?
Thank you for the suggestion, Q.
Doing so appears to go through the urlencode process upon saving the
message -- it "urlencodes" the literal "$2" when what is needed is to
url-encode what is passed in the parameter $2 at run-time.
Unless I misunderstand, and you had some other use of {{urlencode|}}
in mind. I suppose one would have to modify the PHP code to intercept
the parameter at run time.
> From: Daniel Kinzler <daniel at brightbyte.de>
>
> localurl kann parameter haben. Versuch's mal so:
> {{SERVER}}{{localurl:Special:Userlogin|wpName=$2|wpPassword=$3|
> returnto=Special:Preferences}}
Danke, Daniel,
Ich habe versucht, aber hatte das gleiche Ergebnis wie zuvor.
(This produced the same result as what I had before.)
:::: The first principle is that you must not fool yourself -- and you
are the easiest person to fool. -- Richard Feynman ::::
:::: Jan Steinman, http://www.EcoReality.org ::::
More information about the MediaWiki-l
mailing list