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 :
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 :
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
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 :
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 :
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
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@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 :
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 :
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@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 :
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 :
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@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@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 :
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 :
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-----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
mediawiki-l@lists.wikimedia.org