Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Strange behaviour on user pages whose usernames contain a "+"

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


webmaster at wikimini

Dec 3, 2008, 3:33 PM

Post #1 of 6 (262 views)
Permalink
Strange behaviour on user pages whose usernames contain a "+"

Hi,

First sorry for my poor english.

I'm running Mediawiki 1.13.0 on a production web site for children and
noticed a (big) problem on users pages whose names contain a "+".

Here is an example with user P6++

When I access :
> http://fr.wikimini.org/wiki/Utilisateur:P6++,
I'm redirected to :
> http://fr.wikimini.org/wiki/Utilisateur:P6 (without ++) !!!

I've just created a similar account on Wikipedia fort testing purposes.

When I access :
> http://fr.wikipedia.org/wiki/Utilisateur:Z6++
I get the page :
> http://fr.wikipedia.org/wiki/Utilisateur:Z6++ (with ++) !!!

Actually the problem seems to be specific to the "+" sign. For example,
http://fr.wikimini.org/wiki/Utilisateur:!!!$$zOuzOu$$!!! is working fine!

This problem is really annoying as the
http://fr.wikimini.org/wiki/Utilisateur:P6++ page shows an empty page even
if there is some content on it!

Could someone help?

-------------------------------------------------------------------------------------------------
HTACCESS info:

In the root, I have an htaccess file with the following content:

RewriteEngine on
Options +FollowSymlinks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
Options -Indexes

In the fr folder, I have another htaccess file with the following content:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]

-------------------------------------------------------------------------------------------------

Thank you for your help!

Laurent
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


dan_the_man at telus

Dec 3, 2008, 3:49 PM

Post #2 of 6 (252 views)
Permalink
Re: Strange behaviour on user pages whose usernames contain a "+" [In reply to]

This is because the + sign is treated as a space in queries and you are
rewriting paths to queries.

This is a known issue with using rewrite rules (which are basically a
poor hack) to manage short urls. The best way to do short urls is with a
Alias line which can only be done if you have root access to the webserver.

Though, I also have an even better method for nginx users.

~Daniel Friesen (Dantman, Nadir-Seen-Fire)
~Profile/Portfolio: http://nadir-seen-fire.com
-The Nadir-Point Group (http://nadir-point.com)
--It's Wiki-Tools subgroup (http://wiki-tools.com)
--The ElectronicMe project (http://electronic-me.org)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
--Animepedia (http://anime.wikia.com)
--Narutopedia (http://naruto.wikia.com)

Wikimini wrote:
> Hi,
>
> First sorry for my poor english.
>
> I'm running Mediawiki 1.13.0 on a production web site for children and
> noticed a (big) problem on users pages whose names contain a "+".
>
> Here is an example with user P6++
>
> When I access :
> > http://fr.wikimini.org/wiki/Utilisateur:P6++,
> I'm redirected to :
>
>> http://fr.wikimini.org/wiki/Utilisateur:P6 (without ++) !!!
>>
>
> I've just created a similar account on Wikipedia fort testing purposes.
>
> When I access :
>
>> http://fr.wikipedia.org/wiki/Utilisateur:Z6++
>>
> I get the page :
>
>> http://fr.wikipedia.org/wiki/Utilisateur:Z6++ (with ++) !!!
>>
>
> Actually the problem seems to be specific to the "+" sign. For example,
> http://fr.wikimini.org/wiki/Utilisateur:!!!$$zOuzOu$$!!! is working fine!
>
> This problem is really annoying as the
> http://fr.wikimini.org/wiki/Utilisateur:P6++ page shows an empty page even
> if there is some content on it!
>
> Could someone help?
>
> -------------------------------------------------------------------------------------------------
> HTACCESS info:
>
> In the root, I have an htaccess file with the following content:
>
> RewriteEngine on
> Options +FollowSymlinks
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
> Options -Indexes
>
> In the fr folder, I have another htaccess file with the following content:
>
> RewriteEngine on
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
>
> -------------------------------------------------------------------------------------------------
>
> Thank you for your help!
>
> Laurent
>


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


webmaster at wikimini

Dec 3, 2008, 5:33 PM

Post #3 of 6 (250 views)
Permalink
Re: Strange behaviour on user pages whose usernames contain a "+" [In reply to]

Hi,

Thank you for your answer.

I do not have root access to the server for the moment.

A temporary solution could be to avoid the use of this special character (+)
in the username. Is that possible?

Laurent


2008/12/4 Daniel Friesen <dan_the_man[at]telus.net>

> This is because the + sign is treated as a space in queries and you are
> rewriting paths to queries.
>
> This is a known issue with using rewrite rules (which are basically a
> poor hack) to manage short urls. The best way to do short urls is with a
> Alias line which can only be done if you have root access to the webserver.
>
> Though, I also have an even better method for nginx users.
>
> ~Daniel Friesen (Dantman, Nadir-Seen-Fire)
> ~Profile/Portfolio: http://nadir-seen-fire.com
> -The Nadir-Point Group (http://nadir-point.com)
> --It's Wiki-Tools subgroup (http://wiki-tools.com)
> --The ElectronicMe project (http://electronic-me.org)
> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> --Animepedia (http://anime.wikia.com)
> --Narutopedia (http://naruto.wikia.com)
>
> Wikimini wrote:
> > Hi,
> >
> > First sorry for my poor english.
> >
> > I'm running Mediawiki 1.13.0 on a production web site for children and
> > noticed a (big) problem on users pages whose names contain a "+".
> >
> > Here is an example with user P6++
> >
> > When I access :
> > > http://fr.wikimini.org/wiki/Utilisateur:P6++,
> > I'm redirected to :
> >
> >> http://fr.wikimini.org/wiki/Utilisateur:P6 (without ++) !!!
> >>
> >
> > I've just created a similar account on Wikipedia fort testing purposes.
> >
> > When I access :
> >
> >> http://fr.wikipedia.org/wiki/Utilisateur:Z6++
> >>
> > I get the page :
> >
> >> http://fr.wikipedia.org/wiki/Utilisateur:Z6++ (with ++) !!!
> >>
> >
> > Actually the problem seems to be specific to the "+" sign. For example,
> > http://fr.wikimini.org/wiki/Utilisateur:!!!$$zOuzOu$$!<http://fr.wikimini.org/wiki/Utilisateur:%21%21%21$$zOuzOu$$%21>!!
> is working fine!
> >
> > This problem is really annoying as the
> > http://fr.wikimini.org/wiki/Utilisateur:P6++ page shows an empty page
> even
> > if there is some content on it!
> >
> > Could someone help?
> >
> >
> -------------------------------------------------------------------------------------------------
> > HTACCESS info:
> >
> > In the root, I have an htaccess file with the following content:
> >
> > RewriteEngine on
> > Options +FollowSymlinks
> > RewriteCond %{REQUEST_FILENAME} !-f
> > RewriteCond %{REQUEST_FILENAME} !-d
> > RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
> > Options -Indexes
> >
> > In the fr folder, I have another htaccess file with the following
> content:
> >
> > RewriteEngine on
> > RewriteCond %{REQUEST_FILENAME} !-f
> > RewriteCond %{REQUEST_FILENAME} !-d
> > RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
> >
> >
> -------------------------------------------------------------------------------------------------
> >
> > Thank you for your help!
> >
> > Laurent
> >
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


dan_the_man at telus

Dec 3, 2008, 7:45 PM

Post #4 of 6 (246 views)
Permalink
Re: Strange behaviour on user pages whose usernames contain a "+" [In reply to]

Well, it's always good to avoid special characters in the username.
However, this really shouldn't be an issue unless you are manually
typing + into the url. If you stick [[C++]] into a page those +'s should
be urlencoded and links should work fine. If you're having issues, just
type names in the searchbox and hit go instead of typing it in the
address bar.

~Daniel Friesen (Dantman, Nadir-Seen-Fire)
~Profile/Portfolio: http://nadir-seen-fire.com
-The Nadir-Point Group (http://nadir-point.com)
--It's Wiki-Tools subgroup (http://wiki-tools.com)
--The ElectronicMe project (http://electronic-me.org)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
--Animepedia (http://anime.wikia.com)
--Narutopedia (http://naruto.wikia.com)

Wikimini wrote:
> Hi,
>
> Thank you for your answer.
>
> I do not have root access to the server for the moment.
>
> A temporary solution could be to avoid the use of this special character (+)
> in the username. Is that possible?
>
> Laurent
>
>
> 2008/12/4 Daniel Friesen <dan_the_man[at]telus.net>
>
>
>> This is because the + sign is treated as a space in queries and you are
>> rewriting paths to queries.
>>
>> This is a known issue with using rewrite rules (which are basically a
>> poor hack) to manage short urls. The best way to do short urls is with a
>> Alias line which can only be done if you have root access to the webserver.
>>
>> Though, I also have an even better method for nginx users.
>>
>> ~Daniel Friesen (Dantman, Nadir-Seen-Fire)
>> ~Profile/Portfolio: http://nadir-seen-fire.com
>> -The Nadir-Point Group (http://nadir-point.com)
>> --It's Wiki-Tools subgroup (http://wiki-tools.com)
>> --The ElectronicMe project (http://electronic-me.org)
>> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
>> --Animepedia (http://anime.wikia.com)
>> --Narutopedia (http://naruto.wikia.com)
>>
>> Wikimini wrote:
>>
>>> Hi,
>>>
>>> First sorry for my poor english.
>>>
>>> I'm running Mediawiki 1.13.0 on a production web site for children and
>>> noticed a (big) problem on users pages whose names contain a "+".
>>>
>>> Here is an example with user P6++
>>>
>>> When I access :
>>> > http://fr.wikimini.org/wiki/Utilisateur:P6++,
>>> I'm redirected to :
>>>
>>>
>>>> http://fr.wikimini.org/wiki/Utilisateur:P6 (without ++) !!!
>>>>
>>>>
>>> I've just created a similar account on Wikipedia fort testing purposes.
>>>
>>> When I access :
>>>
>>>
>>>> http://fr.wikipedia.org/wiki/Utilisateur:Z6++
>>>>
>>>>
>>> I get the page :
>>>
>>>
>>>> http://fr.wikipedia.org/wiki/Utilisateur:Z6++ (with ++) !!!
>>>>
>>>>
>>> Actually the problem seems to be specific to the "+" sign. For example,
>>> http://fr.wikimini.org/wiki/Utilisateur:!!!$$zOuzOu$$!<http://fr.wikimini.org/wiki/Utilisateur:%21%21%21$$zOuzOu$$%21>!!
>>>
>> is working fine!
>>
>>> This problem is really annoying as the
>>> http://fr.wikimini.org/wiki/Utilisateur:P6++ page shows an empty page
>>>
>> even
>>
>>> if there is some content on it!
>>>
>>> Could someone help?
>>>
>>>
>>>
>> -------------------------------------------------------------------------------------------------
>>
>>> HTACCESS info:
>>>
>>> In the root, I have an htaccess file with the following content:
>>>
>>> RewriteEngine on
>>> Options +FollowSymlinks
>>> RewriteCond %{REQUEST_FILENAME} !-f
>>> RewriteCond %{REQUEST_FILENAME} !-d
>>> RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
>>> Options -Indexes
>>>
>>> In the fr folder, I have another htaccess file with the following
>>>
>> content:
>>
>>> RewriteEngine on
>>> RewriteCond %{REQUEST_FILENAME} !-f
>>> RewriteCond %{REQUEST_FILENAME} !-d
>>> RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
>>>
>>>
>>>
>> -------------------------------------------------------------------------------------------------
>>
>>> Thank you for your help!
>>>
>>> Laurent
>>>
>>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l[at]lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
>>


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


webmaster at wikimini

Dec 9, 2008, 1:34 AM

Post #5 of 6 (206 views)
Permalink
Re: Strange behaviour on user pages whose usernames contain a "+" [In reply to]

I think I will use
http://www.mediawiki.org/wiki/Extension:Username_Blacklist to avoid the use
of "+" in usernames. Is there a better solution?

Thank you.

Laurent


2008/12/4 Daniel Friesen <dan_the_man[at]telus.net>

> Well, it's always good to avoid special characters in the username.
> However, this really shouldn't be an issue unless you are manually
> typing + into the url. If you stick [[C++]] into a page those +'s should
> be urlencoded and links should work fine. If you're having issues, just
> type names in the searchbox and hit go instead of typing it in the
> address bar.
>
> ~Daniel Friesen (Dantman, Nadir-Seen-Fire)
> ~Profile/Portfolio: http://nadir-seen-fire.com
> -The Nadir-Point Group (http://nadir-point.com)
> --It's Wiki-Tools subgroup (http://wiki-tools.com)
> --The ElectronicMe project (http://electronic-me.org)
> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> --Animepedia (http://anime.wikia.com)
> --Narutopedia (http://naruto.wikia.com)
>
> Wikimini wrote:
> > Hi,
> >
> > Thank you for your answer.
> >
> > I do not have root access to the server for the moment.
> >
> > A temporary solution could be to avoid the use of this special character
> (+)
> > in the username. Is that possible?
> >
> > Laurent
> >
> >
> > 2008/12/4 Daniel Friesen <dan_the_man[at]telus.net>
> >
> >
> >> This is because the + sign is treated as a space in queries and you are
> >> rewriting paths to queries.
> >>
> >> This is a known issue with using rewrite rules (which are basically a
> >> poor hack) to manage short urls. The best way to do short urls is with a
> >> Alias line which can only be done if you have root access to the
> webserver.
> >>
> >> Though, I also have an even better method for nginx users.
> >>
> >> ~Daniel Friesen (Dantman, Nadir-Seen-Fire)
> >> ~Profile/Portfolio: http://nadir-seen-fire.com
> >> -The Nadir-Point Group (http://nadir-point.com)
> >> --It's Wiki-Tools subgroup (http://wiki-tools.com)
> >> --The ElectronicMe project (http://electronic-me.org)
> >> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> >> --Animepedia (http://anime.wikia.com)
> >> --Narutopedia (http://naruto.wikia.com)
> >>
> >> Wikimini wrote:
> >>
> >>> Hi,
> >>>
> >>> First sorry for my poor english.
> >>>
> >>> I'm running Mediawiki 1.13.0 on a production web site for children and
> >>> noticed a (big) problem on users pages whose names contain a "+".
> >>>
> >>> Here is an example with user P6++
> >>>
> >>> When I access :
> >>> > http://fr.wikimini.org/wiki/Utilisateur:P6++,
> >>> I'm redirected to :
> >>>
> >>>
> >>>> http://fr.wikimini.org/wiki/Utilisateur:P6 (without ++) !!!
> >>>>
> >>>>
> >>> I've just created a similar account on Wikipedia fort testing purposes.
> >>>
> >>> When I access :
> >>>
> >>>
> >>>> http://fr.wikipedia.org/wiki/Utilisateur:Z6++
> >>>>
> >>>>
> >>> I get the page :
> >>>
> >>>
> >>>> http://fr.wikipedia.org/wiki/Utilisateur:Z6++ (with ++) !!!
> >>>>
> >>>>
> >>> Actually the problem seems to be specific to the "+" sign. For example,
> >>> http://fr.wikimini.org/wiki/Utilisateur:!!!$$zOuzOu$$<http://fr.wikimini.org/wiki/Utilisateur:%21%21%21$$zOuzOu$$>
> !<http://fr.wikimini.org/wiki/Utilisateur:%21%21%21$$zOuzOu$$%21>!!
> >>>
> >> is working fine!
> >>
> >>> This problem is really annoying as the
> >>> http://fr.wikimini.org/wiki/Utilisateur:P6++ page shows an empty page
> >>>
> >> even
> >>
> >>> if there is some content on it!
> >>>
> >>> Could someone help?
> >>>
> >>>
> >>>
> >>
> -------------------------------------------------------------------------------------------------
> >>
> >>> HTACCESS info:
> >>>
> >>> In the root, I have an htaccess file with the following content:
> >>>
> >>> RewriteEngine on
> >>> Options +FollowSymlinks
> >>> RewriteCond %{REQUEST_FILENAME} !-f
> >>> RewriteCond %{REQUEST_FILENAME} !-d
> >>> RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
> >>> Options -Indexes
> >>>
> >>> In the fr folder, I have another htaccess file with the following
> >>>
> >> content:
> >>
> >>> RewriteEngine on
> >>> RewriteCond %{REQUEST_FILENAME} !-f
> >>> RewriteCond %{REQUEST_FILENAME} !-d
> >>> RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
> >>>
> >>>
> >>>
> >>
> -------------------------------------------------------------------------------------------------
> >>
> >>> Thank you for your help!
> >>>
> >>> Laurent
> >>>
> >>>
> >> _______________________________________________
> >> MediaWiki-l mailing list
> >> MediaWiki-l[at]lists.wikimedia.org
> >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >>
> >>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


brion at wikimedia

Dec 9, 2008, 10:13 AM

Post #6 of 6 (203 views)
Permalink
Re: Strange behaviour on user pages whose usernames contain a "+" [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wikimini wrote:
> I think I will use
> http://www.mediawiki.org/wiki/Extension:Username_Blacklist to avoid the use
> of "+" in usernames. Is there a better solution?

http://www.mediawiki.org/wiki/Manual:$wgLegalTitleChars

- -- brion
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk+tVkACgkQwRnhpk1wk44EmACgrU74nUeNTkCJkz5W0Fm7K0PK
PJcAn2FJvA0jjkTBHIrVrPt2KzsCYB8c
=ZS5O
-----END PGP SIGNATURE-----

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.