Replace spaces with underscores in parser cache rendering hash. Caused a bug where...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 5 May 2007 18:08:25 +0000 (18:08 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 5 May 2007 18:08:25 +0000 (18:08 +0000)
includes/User.php

index 4ecd49d..33cb9a6 100644 (file)
@@ -2132,6 +2132,8 @@ class User {
                // extra options or other effects on the parser cache.
                wfRunHooks( 'PageRenderingHash', array( &$confstr ) );
 
+               // Make it a valid memcached key fragment
+               $confstr = str_replace( ' ', '_', $confstr );
                $this->mHash = $confstr;
                return $confstr;
        }