rdbms: make getCPInfoFromCookieValue() stricter about allowed values
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 11 Jun 2018 21:52:37 +0000 (14:52 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 12 Jun 2018 18:18:54 +0000 (18:18 +0000)
commit44b47b43ee0df87d01ed40ecf0899137c5bb2b68
tree5c23ae5d2c3ea26e7ae340b69206a94cdcf43580
parent5b426d00b17f939bbb78f7eedb987f74df6686c9
rdbms: make getCPInfoFromCookieValue() stricter about allowed values

All components, not just the write index, must now be present.

Bug: T194403
Change-Id: I279ba3e16d470aca09fdb74cec91d28efb5e2f95
includes/libs/rdbms/lbfactory/LBFactory.php
tests/phpunit/includes/db/LBFactoryTest.php