bug in user.php - function matchEditToken ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bug in user.php - function matchEditToken ?

Peter-156
Hi,

in the function matcheditToken there is a call to a function only available
if you use memcached. The line in question is
$mckey = memsess_key( session_id() );

the memsess_key function is registered in the function "SetupSession" (also
in user.php). This function is only included if $wgSessionsInMemcached is
true tough (as it should).

to solve the problem the function matcheditToken has to be altered.

search for the line:

        if ( $val != $sessionToken ) {

and change this to:

        if ( $val != $sessionToken and $wgSessionsInMemcached ) {


This change will avoid the error "call to undefined function memsess_key"
when the session is lost.

Best regards,
Peter.
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: bug in user.php - function matchEditToken ?

Brion Vibber
ipbwiki list wrote:
> Hi,
>
> in the function matcheditToken there is a call to a function only available
> if you use memcached. The line in question is
> $mckey = memsess_key( session_id() );

That whole bit is a live debugging hack and should be removed / fixed.

-- brion vibber (brion @ pobox.com)


_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

signature.asc (257 bytes) Download Attachment