resourceloader: Validate ResourceLoaderContext::getDirection() input
authorFomafix <fomafix@googlemail.com>
Tue, 11 Jun 2019 19:54:57 +0000 (21:54 +0200)
committerKrinkle <krinklemail@gmail.com>
Fri, 14 Jun 2019 18:14:04 +0000 (18:14 +0000)
commitdf65ef30618fb201772f67350ac6f3c46bcf3d98
tree68c56d84dd496a818183b9822f17dd37dce38d94
parent845564a95a2fc4b999318017564e13995cc59b92
resourceloader: Validate ResourceLoaderContext::getDirection() input

Only dir=ltr and dir=rtl are now allowed. Ignore other values.

Change-Id: Id39471e8a792c7c48ff7ca9d80be2e6dd4caee6b
includes/resourceloader/ResourceLoaderContext.php
tests/phpunit/includes/resourceloader/ResourceLoaderContextTest.php