Last modified: 2010-05-15 15:56:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8231, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6231 - It is not possible to add "Special:Confirmemail" to $wgWhitelistRead
It is not possible to add "Special:Confirmemail" to $wgWhitelistRead
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.6.x
Other Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-07 11:17 UTC by Jan Kellermann
Modified: 2010-05-15 15:56 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jan Kellermann 2006-06-07 11:17:42 UTC
If you want a "secure" Wiki and use the settings described here
http://meta.wikimedia.org/wiki/Help:User_rights#Managing_group_rights
you are not able to confirm your emailaddress, because it is not possible to add
this site

http://www.domain.com/wiki/index.php/Special:Confirmemail/<CODE>

because you use only the php-command "in_array" and do not cut the code-part or
use RegExps.

Please add this feature or a variable such as
$wgGroupPermissions['*']['confirmemail']=true

Thanks in advance
Comment 1 mfreemon 2006-07-21 21:30:41 UTC
FWIW, this is what I did as a temporary fix.  I'm not sure it's the 
best or most elegant solution, but it allows the email confirmation to 
complete successfully.

[root@ncassr includes]# diff /root/mediawiki-
1.7.1/includes/Title.php /var/www/mediawiki-1.7.1/includes/Title.php
1153a1154,1158
> 
>                       if (substr_count($name,"Confirmemail") > 0) {
>                               return true;
>                       }
> 

- Mike
Comment 2 Jack D. Pond 2007-03-19 19:05:07 UTC
Another solution comes from the site: 
http://meta.wikimedia.org/wiki/Preventing_Access#Preventing_access_to_all_pages_for_non-validated_users

The problem I ran into with MediaWiki v1.7.1 is being unable to confirm my e-mail address when I create a new user. I 
can access the login page and create an account, I can access my preferences to update my e-mail address, I click on 
Confirm e-mail and receive the e-mail, but when I click the link, I get a "You must log in to view other pages." 
message. In order to allow everyone to see the "Special:Confirmemail" 
and "Special:Confirmemail/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" to verify the e-mail, you need to add four lines to 
include/Title.php: find the function userCanRead() and add just before these lines, which are at the end of the 
function)

 }
return false;
}
the following four lines:

$names=split("/", $name);
if(strcmp($names[0],"Special:Confirmemail")==0 && count($names)==2 && preg_match('/[a-f0-9]{32}/',$names[1])) {
  return true;
}
The final code should look like this:

$names=split("/", $name);
if(strcmp($names[0],"Special:Confirmemail")==0 && count($names)==2 && preg_match('/[a-f0-9]{32}/',$names[1])) {
  return true;
  }
- Jack
Comment 3 Rob Church 2007-06-29 01:35:10 UTC
Fixed in r23528.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links