wiki.techinc.nl/tests/phpunit/includes/objectcache
Ori Livneh 0c9fb12265 Escape colons in BagOStuff key segments
For the sake of safety and correctness, the following BagOStuff::makeKey()
invocations should return distinct keys:

   $cache->makeKey( 'ab:', 'cd' );
   $cache->makeKey( 'ab', ':cd' );

That is not currently the case, because while we use ':' as a key path
separator, we don't escape ':' in the input supplied to makeKey(). So, make
BagOStuff::makeKeyInternal() URL-encode colons.

To prevent this from messing up the max. key length calculations, reproduce
this logic in MemcachedBagOStuff::makeKeyInternal(), in lieu of having the
method call its parent.

Change-Id: I83ea7e7336a1c9e64aa42284c2517089a736efe5
2015-10-23 20:26:49 -07:00
..
BagOStuffTest.php Escape colons in BagOStuff key segments 2015-10-23 20:26:49 -07:00
MemcachedBagOStuffTest.php Escape colons in BagOStuff key segments 2015-10-23 20:26:49 -07:00
MultiWriteBagOStuffTest.php Add WRITE_SYNC flag to BagOStuff::set()/merge() 2015-10-22 01:44:09 +00:00
ReplicatedBagOStuffTest.php objectcache: Add tests for ReplicatedBagOStuff 2015-06-24 20:17:18 +01:00
WANObjectCacheTest.php objectcache: Remove getWithSetCallback() signature backwards-compatability 2015-10-19 23:47:04 +00:00