From: Tim Starling Date: Sat, 5 May 2007 18:08:25 +0000 (+0000) Subject: Replace spaces with underscores in parser cache rendering hash. Caused a bug where... X-Git-Tag: 1.31.0-rc.0~53073 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=4a35dbd30ed8b14504afe2f52d5963ce0974b4ba;p=lhc%2Fweb%2Fwiklou.git Replace spaces with underscores in parser cache rendering hash. Caused a bug where people with ISO 8601 date format had a non-functional parser cache --- diff --git a/includes/User.php b/includes/User.php index 4ecd49de5c..33cb9a6bc0 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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; }